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

New commits:
commit 50ab65a84ade5a14c2e48667ff6629e4907de35f
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue May 23 20:17:09 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed May 24 09:48:02 2023 +0200

    CppunitTest_sw_htmlexport: avoid reqif magic in testReqIfList
    
    Set the filter options explicitly, rather than inferring it from the
    test name.
    
    Change-Id: Id24ee8755afeed0393f7ebe164f1caf27a2e0ca8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152170
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx 
b/sw/qa/extras/htmlexport/htmlexport.cxx
index 7121b9f7021f..18bfa2ea6496 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -917,8 +917,14 @@ CPPUNIT_TEST_FIXTURE(HtmlExportTest, testXHTMLUseCSS)
     CPPUNIT_ASSERT(aStream.indexOf("<span style=\"font-size:") != -1);
 }
 
-DECLARE_HTMLEXPORT_TEST(testReqIfList, "reqif-list.xhtml")
+CPPUNIT_TEST_FIXTURE(HtmlExportTest, testReqIfList)
 {
+    setImportFilterOptions("xhtmlns=reqif-xhtml");
+    setImportFilterName("HTML (StarWriter)");
+    createSwDoc("reqif-list.xhtml");
+    setFilterOptions("xhtmlns=reqif-xhtml");
+    save(OUString::createFromAscii(mpFilter));
+
     SvStream* pStream = maTempFile.GetStream(StreamMode::READ);
     CPPUNIT_ASSERT(pStream);
     sal_uInt64 nLength = pStream->TellEnd();

Reply via email to