summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-01-13 14:06:11 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-01-14 08:37:44 +0100
commit327cd7c9616339a42d477a68392012292556c2d6 (patch)
tree3637bf3cd763b1bae74d985e37a2861608b121f2 /sw
parent4418f099661033702b8fb94572bd0a1bfecbd55b (diff)
tdf#139580: sw_ooxmlexport16: Add unittest
Change-Id: I635909b62239e2afb72038c21091b65e22ce8d43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109227 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf139580.odtbin0 -> 17378 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/tdf139580.odt b/sw/qa/extras/ooxmlexport/data/tdf139580.odt
new file mode 100644
index 000000000000..48224c8dabf9
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf139580.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index 8c521dcd6c8b..77dda6a55c73 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -38,6 +38,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf138892_noNumbering, "tdf138892_noNumbering.docx"
CPPUNIT_ASSERT_MESSAGE("Para3: <blank line>", getProperty<OUString>(getParagraph(3), "NumberingStyleName").isEmpty());
}
+DECLARE_OOXMLEXPORT_TEST(testTdf139580, "tdf139580.odt")
+{
+ // Without the fix in place, this test would have crashed at export time
+ CPPUNIT_ASSERT_EQUAL(2, getShapes());
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
DECLARE_OOXMLEXPORT_TEST(testTdf138953, "croppedAndRotated.odt")
{
CPPUNIT_ASSERT_EQUAL(1, getShapes());