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

New commits:
commit 5f19b56886db4a99155336f4c467e6ff75339c34
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue Feb 28 20:08:02 2023 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Mar 1 07:07:09 2023 +0000

    CppunitTest_sw_htmlexport: avoid EmbedImages magic in testEmbedImagesEnabled
    
    Set the filter option explicitly, rather than inferring it from the test
    name.
    
    Change-Id: I4af0edce4316b7717512db70e8ad970126e2b3e2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148018
    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 443ae8443ba3..ea5ef60e3ddc 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -618,8 +618,12 @@ DECLARE_HTMLEXPORT_TEST(testNormalImageExport, 
"textAndImage.docx")
     CPPUNIT_ASSERT(imgSrc.endsWith(".png"));
 }
 
-DECLARE_HTMLEXPORT_TEST(testEmbedImagesEnabled, "textAndImage.docx")
+CPPUNIT_TEST_FIXTURE(HtmlExportTest, testEmbedImagesEnabled)
 {
+    createSwDoc("textAndImage.docx");
+    setFilterOptions("EmbedImages");
+    save(OUString::createFromAscii(mpFilter));
+
     htmlDocUniquePtr pDoc = parseHtml(maTempFile);
     CPPUNIT_ASSERT(pDoc);
 

Reply via email to