sw/qa/extras/htmlexport/htmlexport.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 936ea5d2cc5267dc169a4dc5986d9ae604f14d81 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Tue May 9 22:57:36 2023 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed May 10 09:13:42 2023 +0200 CppunitTest_sw_htmlexport: avoid reqif magic in testReqIfTable Set the filter options explicitly, rather than inferring it from the test name. Change-Id: I2edb1dfd8fa7d756ce34b747659d9cfbe18b49ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151600 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx index dc0e2aa5c666..793430fec73f 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -831,8 +831,14 @@ CPPUNIT_TEST_FIXTURE(HtmlExportTest, testReqIfJpgImg) CPPUNIT_ASSERT(aStream.indexOf("type=\"image/png\"") != -1); } -DECLARE_HTMLEXPORT_TEST(testReqIfTable, "reqif-table.xhtml") +CPPUNIT_TEST_FIXTURE(HtmlExportTest, testReqIfTable) { + setImportFilterOptions("xhtmlns=reqif-xhtml"); + setImportFilterName("HTML (StarWriter)"); + createSwDoc("reqif-table.xhtml"); + setFilterOptions("xhtmlns=reqif-xhtml"); + save(OUString::createFromAscii(mpFilter)); + SvMemoryStream aStream; WrapReqifFromTempFile(aStream); xmlDocUniquePtr pDoc = parseXmlStream(&aStream);