sw/qa/extras/htmlexport/htmlexport.cxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit aa634cb115ec4efb61017aae6699744666a7c31f
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Fri Mar 3 09:45:16 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Mar 3 06:46:41 2023 +0000

    tdf#153923: modify the unit test for the 7.0 branch
    
    Test the ReqIF here.
    
    Change-Id: Ief6703546398aa63812512f85a3185e5aceb405e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148155
    Tested-by: Mike Kaganski <mike.kagan...@collabora.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx 
b/sw/qa/extras/htmlexport/htmlexport.cxx
index 1326fbb48dc5..b6cc08282287 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -2328,22 +2328,22 @@ CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, 
testSectionDir)
     assertXPath(pXmlDoc, "//reqif-xhtml:div[@id='mysect']", "style", "dir: 
ltr");
 }
 
-CPPUNIT_TEST_FIXTURE(HtmlExportTest, testTdf153923)
+CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, testTdf153923)
 {
     OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + 
"TableWithIndent.fodt";
     mxComponent = loadFromDesktop(aURL, "com.sun.star.text.TextDocument", {});
-    uno::Reference<frame::XStorable> xStorable(mxComponent, 
uno::UNO_QUERY_THROW);
-    uno::Sequence<beans::PropertyValue> aStoreProperties = {
-        comphelper::makePropertyValue("FilterName", OUString("HTML 
(StarWriter)"))
-    };
-    xStorable->storeToURL(maTempFile.GetURL(), aStoreProperties);
 
-    htmlDocUniquePtr pDoc = parseHtml(maTempFile);
+    // When exporting to (reqif-)xhtml:
+    ExportToReqif();
+
+    SvMemoryStream aStream;
+    WrapReqifFromTempFile(aStream);
+    xmlDocUniquePtr pDoc = parseXmlStream(&aStream);
     // Without the fix in place, this would fail
     CPPUNIT_ASSERT(pDoc);
 
     // The 'dd' tag was not closed
-    assertXPath(pDoc, "/html/body//dd");
+    assertXPath(pDoc, "//reqif-xhtml:dd");
 }
 
 CPPUNIT_PLUGIN_IMPLEMENT();

Reply via email to