sw/qa/extras/htmlexport/htmlexport.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit d18096aeafa9ad5924f730cd39138fdf4f7d9609 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Tue Feb 7 20:10:00 2023 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Feb 8 07:07:29 2023 +0000 CppunitTest_sw_htmlexport: avoid preTest() magic in ... ... testExportOfImagesWithSkipImagesEnabled. Set the filter option explicitly, rather than inferring it from the test name. Change-Id: I931711f394b41916a640bd3be974337d61491928 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146640 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 c04226e0f5c8..11ab26d56185 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -410,8 +410,12 @@ DECLARE_HTMLEXPORT_TEST(testExportOfImages, "textAndImage.docx") assertXPath(pDoc, "/html/body/p/img", 1); } -DECLARE_HTMLEXPORT_TEST(testExportOfImagesWithSkipImagesEnabled, "textAndImage.docx") +CPPUNIT_TEST_FIXTURE(HtmlExportTest, testExportOfImagesWithSkipImagesEnabled) { + createSwDoc("textAndImage.docx"); + setFilterOptions("SkipImages"); + save(OUString::createFromAscii(mpFilter)); + htmlDocUniquePtr pDoc = parseHtml(maTempFile); CPPUNIT_ASSERT(pDoc);