sw/qa/extras/htmlexport/htmlexport.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit a304bd8245f8078813014e90ada91c3332f63146 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Tue Mar 28 22:22:13 2023 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Mar 29 06:29:45 2023 +0000 CppunitTest_sw_htmlexport: avoid reqif magic in testReqIfParagraph Set the filter options explicitly, rather than inferring it from the test name. Change-Id: Ic1c13c7f63bb7c052ba4786a45ac02ea3e2b56ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149655 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 f1bbd82f0dd0..ca9b816f68a4 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -652,8 +652,14 @@ CPPUNIT_TEST_FIXTURE(HtmlExportTest, testXHTML) assertXPath(pDoc, "/html/body", "xml:lang", "en-US"); } -DECLARE_HTMLEXPORT_TEST(testReqIfParagraph, "reqif-p.xhtml") +CPPUNIT_TEST_FIXTURE(HtmlExportTest, testReqIfParagraph) { + setImportFilterOptions("xhtmlns=reqif-xhtml"); + setImportFilterName("HTML (StarWriter)"); + createSwDoc("reqif-p.xhtml"); + setFilterOptions("xhtmlns=reqif-xhtml"); + save(OUString::createFromAscii(mpFilter)); + SvStream* pStream = maTempFile.GetStream(StreamMode::READ); CPPUNIT_ASSERT(pStream); sal_uInt64 nLength = pStream->TellEnd();