summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-04-28 11:48:26 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-04-28 17:24:06 +0200
commit8c8979468835694de949c044bb698c6d5ae10d19 (patch)
tree3fc1e6b459aa387471cec199b2e72729e50e44a3 /sw/qa
parentbf02dfd6ccae832723da81f96f1f2e4bf6174e45 (diff)
tdf#105688: sw_ooxmlexport16: Add unittest
Change-Id: I3da5f4416f1833389691787d205a89f3005f746e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114773 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf105688.docxbin0 -> 31745 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport16.cxx7
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf105688.docx b/sw/qa/extras/ooxmlexport/data/tdf105688.docx
new file mode 100644
index 000000000000..55a2972d39bc
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf105688.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index 0c50f3198dcb..d31a4ea06a8f 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -328,6 +328,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf141550, "tdf141550.docx")
DECLARE_OOXMLEXPORT_TEST(testTdf140137, "tdf140137.docx")
{
// Don't throw exception during load
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
+DECLARE_OOXMLEXPORT_TEST(testTdf105688, "tdf105688.docx")
+{
+ // Don't throw exception during load
+ CPPUNIT_ASSERT_EQUAL(2, getPages());
}
DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testCommentDone, "CommentDone.docx")