diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-09-03 12:18:36 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-09-03 14:11:54 +0200 |
commit | 4a43e781d0920c1534cd44339e624f9cc76ae298 (patch) | |
tree | 6fd95fe99968e65cd914bb78fe4d80bb4b11e895 | |
parent | 2db30aa0206ca3d9d5a665d550820d8fcbcff4b9 (diff) |
tdf#123435: sw_ooxmlexport13: Add unittest
Change-Id: Ie3ddce2dc92433bd5feca97bd4d467530eb38983
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101993
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf123435.docx | bin | 0 -> 27738 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport13.cxx | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf123435.docx b/sw/qa/extras/ooxmlexport/data/tdf123435.docx Binary files differnew file mode 100644 index 000000000000..02d8cd1e9b63 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf123435.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx index 0a35aaa7df09..cc2a19c44cd2 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx @@ -592,6 +592,16 @@ DECLARE_OOXMLEXPORT_TEST(testInputListExport, "tdf122186_input_list.odt") } } +DECLARE_OOXMLEXPORT_TEST(testTdf123435, "tdf123435.docx") +{ + CPPUNIT_ASSERT_EQUAL(1, getPages()); + + // Without the fix in place, it would have failed with + // - Expected: 2 + // - Actual : 1 + CPPUNIT_ASSERT_EQUAL(2, getShapes()); +} + DECLARE_OOXMLEXPORT_TEST(testTdf116371, "tdf116371.odt") { CPPUNIT_ASSERT_EQUAL(1, getShapes()); |