diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-04-28 11:48:26 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-04-28 17:24:06 +0200 |
commit | 8c8979468835694de949c044bb698c6d5ae10d19 (patch) | |
tree | 3fc1e6b459aa387471cec199b2e72729e50e44a3 /sw/qa | |
parent | bf02dfd6ccae832723da81f96f1f2e4bf6174e45 (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.docx | bin | 0 -> 31745 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 7 |
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 Binary files differnew file mode 100644 index 000000000000..55a2972d39bc --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf105688.docx 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") |