diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-13 14:06:11 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-14 08:37:44 +0100 |
commit | 327cd7c9616339a42d477a68392012292556c2d6 (patch) | |
tree | 3637bf3cd763b1bae74d985e37a2861608b121f2 /sw | |
parent | 4418f099661033702b8fb94572bd0a1bfecbd55b (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.odt | bin | 0 -> 17378 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/tdf139580.odt b/sw/qa/extras/ooxmlexport/data/tdf139580.odt Binary files differnew file mode 100644 index 000000000000..48224c8dabf9 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf139580.odt 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()); |