diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-02 15:26:14 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-03 08:53:06 +0100 |
commit | 0b072e279f5f775a4cd64d9b1275e5ab17d50f05 (patch) | |
tree | 50007abf7eddc066724d4152ffdeb74dddc544c8 | |
parent | a9f82c7c6ac645dd9263b435dbc7695951a70098 (diff) |
tdf138771: sw_ooxmlexport16: Add unittest
Change-Id: Ia1d2020b621233231f63bd5bbaacb5e75b38b48f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111836
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf138771.docx | bin | 0 -> 26757 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf138771.docx b/sw/qa/extras/ooxmlexport/data/tdf138771.docx Binary files differnew file mode 100644 index 000000000000..70b035508bb2 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf138771.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index f53078d6a332..b7af0c5e69b2 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx @@ -84,6 +84,12 @@ DECLARE_OOXMLEXPORT_TEST(testTdf140668, "tdf140668.docx") CPPUNIT_ASSERT_EQUAL(1, getPages()); } +DECLARE_OOXMLEXPORT_TEST(testTdf138771, "tdf138771.docx") +{ + // Don't crash when document is imported + CPPUNIT_ASSERT_EQUAL(1, getPages()); +} + DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf134619_numberingProps, "tdf134619_numberingProps.doc") { // Get the third paragraph's numbering style's 1st level's bullet size |