diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-24 16:46:33 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-25 08:53:53 +0100 |
commit | 12600d50077f955fe22a5df457759c5dc16635db (patch) | |
tree | db09f9e3373c195a8d54e37b3b132c8f9edb1416 /sw | |
parent | 5302268de6a33716c7746aa13232746ad2f2b561 (diff) |
tdf#128737: sw_odfimport: Add unittest
Change-Id: Iaf6f83ae7ca3691682a849830f208218195088e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113062
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/odfimport/data/tdf128737.odt | bin | 0 -> 18111 bytes | |||
-rw-r--r-- | sw/qa/extras/odfimport/odfimport.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/data/tdf128737.odt b/sw/qa/extras/odfimport/data/tdf128737.odt Binary files differnew file mode 100644 index 000000000000..85f2c32c603e --- /dev/null +++ b/sw/qa/extras/odfimport/data/tdf128737.odt diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index f6e657721f1c..33018abf1a4c 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -560,6 +560,13 @@ DECLARE_ODFIMPORT_TEST(testFdo56272, "fdo56272.odt") CPPUNIT_ASSERT_EQUAL(sal_Int32(422), xShape->getPosition().Y); // Was -2371 } +DECLARE_ODFIMPORT_TEST(testTdf128737, "tdf128737.odt") +{ + // Without the fix in place, this test would have crashed + CPPUNIT_ASSERT_EQUAL(4, getPages()); + CPPUNIT_ASSERT_EQUAL(8, getShapes()); +} + DECLARE_ODFIMPORT_TEST(testCalcFootnoteContent, "ooo32780-1.odt") { //this was a CalcFootnoteContent crash |