From 0b072e279f5f775a4cd64d9b1275e5ab17d50f05 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 2 Mar 2021 15:26:14 +0100 Subject: tdf138771: sw_ooxmlexport16: Add unittest Change-Id: Ia1d2020b621233231f63bd5bbaacb5e75b38b48f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111836 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sw/qa/extras/ooxmlexport/data/tdf138771.docx | Bin 0 -> 26757 bytes sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 sw/qa/extras/ooxmlexport/data/tdf138771.docx diff --git a/sw/qa/extras/ooxmlexport/data/tdf138771.docx b/sw/qa/extras/ooxmlexport/data/tdf138771.docx new file mode 100644 index 000000000000..70b035508bb2 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf138771.docx differ 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 -- cgit