[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 25 07:54:33 UTC 2021
sw/qa/extras/odfimport/data/tdf128737.odt |binary
sw/qa/extras/odfimport/odfimport.cxx | 7 +++++++
2 files changed, 7 insertions(+)
New commits:
commit 12600d50077f955fe22a5df457759c5dc16635db
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Mar 24 16:46:33 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Mar 25 08:53:53 2021 +0100
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 at libreoffice.org>
diff --git a/sw/qa/extras/odfimport/data/tdf128737.odt b/sw/qa/extras/odfimport/data/tdf128737.odt
new file mode 100644
index 000000000000..85f2c32c603e
Binary files /dev/null and b/sw/qa/extras/odfimport/data/tdf128737.odt differ
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
More information about the Libreoffice-commits
mailing list