summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-09-03 12:18:36 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2020-09-03 14:11:54 +0200
commit4a43e781d0920c1534cd44339e624f9cc76ae298 (patch)
tree6fd95fe99968e65cd914bb78fe4d80bb4b11e895
parent2db30aa0206ca3d9d5a665d550820d8fcbcff4b9 (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.docxbin0 -> 27738 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport13.cxx10
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
new file mode 100644
index 000000000000..02d8cd1e9b63
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf123435.docx
Binary files differ
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());