| commit | 5db76fd0eca0c80b1e54cdf4a7fea769f5dbc5a4 | [log] |
|---|---|---|
| author | Xisco Fauli <xiscofauli@libreoffice.org> | Wed Aug 17 22:39:27 2022 +0200 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Thu Aug 18 11:12:20 2022 +0200 |
| tree | 837520f52d6a008c1730a51dc797b80007c051de | |
| parent | 1286014bbfad29e99634d62111e1ccef2f5e9a2b [diff] |
tdf#148671: sw_ooxmlexport16: Add unittest Change-Id: I634a1f31c93c9186be6aea35f4a020cceed6dd9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138459 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf148671.docx b/sw/qa/extras/ooxmlexport/data/tdf148671.docx new file mode 100644 index 0000000..d4ed09f --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf148671.docx Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index f0b8340..f1c912b 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -488,6 +488,12 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf69635) assertXPath(pXmlSettings, "/w:settings/w:evenAndOddHeaders", 0); } DECLARE_OOXMLEXPORT_TEST(testTdf148671, "tdf148671.docx") { // Don't assert with 'pFieldMark' failed when document is opened CPPUNIT_ASSERT_EQUAL(1, getPages()); } DECLARE_OOXMLEXPORT_TEST(testTdf140668, "tdf140668.docx") { // Don't crash when document is opened