diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-01-18 10:47:44 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-01-18 16:03:45 +0100 |
commit | 531f30b7387e45cc4616a92023fe0a6209f16192 (patch) | |
tree | 7227de4d35718d0a922fdb17cecca34c0898cf70 /sw/qa/extras | |
parent | a605f2f8fd3e848ed1229328144f948adea82256 (diff) |
tdf#146515: sw_ooxmlexport4: Add unittest
Change-Id: Ib273156124a677fc774340dbd780393dfbd3070b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128548
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf146515.odt | bin | 0 -> 12991 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf146515.odt b/sw/qa/extras/ooxmlexport/data/tdf146515.odt Binary files differnew file mode 100644 index 000000000000..139126d022d1 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf146515.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx index bc4dc3ec75df..268d66a4b9bc 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx @@ -333,6 +333,13 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo106029) assertXPath(pXmlDoc, "/w:settings/w:compat/w:doNotExpandShiftReturn"); } +CPPUNIT_TEST_FIXTURE(Test, testTdf146515) +{ + loadAndSave("tdf146515.odt"); + xmlDocUniquePtr pXmlDoc = parseExport("word/settings.xml"); + assertXPath(pXmlDoc, "/w:settings/w:compat/w:usePrinterMetrics"); +} + CPPUNIT_TEST_FIXTURE(Test, testFDO74106) { loadAndSave("FDO74106.docx"); |