| commit | 71ef4d46e9dd236fe355dceb7a2ee66c04d1ce1f | [log] |
|---|---|---|
| author | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Jul 11 12:43:44 2022 +0200 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Jul 11 15:56:34 2022 +0200 |
| tree | 96f0b67d71324b551cf885dde9631a26a4e0b412 | |
| parent | b12c18c8cfcf37e8a351d76b96aa853cf9bb6766 [diff] |
tdf#149649: sw_ooxmlexport16: Add unittest Change-Id: I764e8803d4067572516c2f1e3995f4a19b78b7c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136956 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf149649.docx b/sw/qa/extras/ooxmlexport/data/tdf149649.docx new file mode 100644 index 0000000..8d6fded --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf149649.docx Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index 7f17c9e..654a209 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -494,6 +494,12 @@ DECLARE_OOXMLEXPORT_TEST(testTdf140668, "tdf140668.docx") CPPUNIT_ASSERT_EQUAL(1, getPages()); } DECLARE_OOXMLEXPORT_TEST(testTdf149649, "tdf149649.docx") { // Don't crash when document is opened CPPUNIT_ASSERT_EQUAL(2, getPages()); } DECLARE_OOXMLEXPORT_TEST(testTdf138771, "tdf138771.docx") { // Don't crash when document is imported