[Libreoffice-commits] core.git: sw/qa

Thorsten Behrens (via logerrit) logerrit at kemper.freedesktop.org
Fri Jul 24 22:35:05 UTC 2020


 sw/qa/extras/ooxmlexport/ooxmlexport4.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit f6b5d60f07e7023f9d3eee1cc12d4142159bd11f
Author:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Wed Jul 22 10:44:46 2020 +0200
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Sat Jul 25 00:34:25 2020 +0200

    tdf#134043 reset global state for unit test
    
    Change-Id: I034b0cd9c6f66c531460d1bb69d9ede5ff46f7d7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99188
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
index 7fe92c72eede..0c20e7d9815a 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
@@ -47,6 +47,17 @@ protected:
         return (OString(filename).endsWith(".docx") && std::find(vDenylist.begin(), vDenylist.end(), filename) == vDenylist.end());
     }
 
+    virtual std::unique_ptr<Resetter> preTest(const char* filename) override
+    {
+        if (OString(filename) == "combobox-control.docx" )
+        {
+            std::shared_ptr< comphelper::ConfigurationChanges > batch(comphelper::ConfigurationChanges::create());
+            officecfg::Office::Writer::Filter::Import::DOCX::ImportComboBoxAsDropDown::set(true, batch);
+            batch->commit();
+        }
+        return nullptr;
+    }
+
     void verifyComboBoxExport(bool aComboBoxAsDropDown);
 };
 


More information about the Libreoffice-commits mailing list