summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-06-02 17:08:00 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2020-06-02 21:33:12 +0200
commit1cfbe26f8f584fb4037ba99572f899a94a238e5b (patch)
tree661cef933a476f481311097147e58206e0840cec
parentf68749054f36f070310e70e2dbf0a11c496539c0 (diff)
tdf#130950: sw: Add unittest
Change-Id: Ia4094f4f411e3f0652fbcc019594ca99ce2428cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95368 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/odfexport/data/tdf130950.odtbin0 -> 28785 bytes
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx7
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf130950.odt b/sw/qa/extras/odfexport/data/tdf130950.odt
new file mode 100644
index 000000000000..a669cb87b53d
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/tdf130950.odt
Binary files differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 8e8da439d3f3..43a9a2ab1286 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -468,6 +468,13 @@ DECLARE_ODFEXPORT_TEST(testTdf131621, "tdf131621.ott")
CPPUNIT_ASSERT_EQUAL( 1, getPages() );
}
+DECLARE_ODFEXPORT_TEST(testTdf130950, "tdf130950.odt")
+{
+ //Crashes at import time
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
+ CPPUNIT_ASSERT_EQUAL(2, getShapes());
+}
+
DECLARE_ODFEXPORT_TEST(testFdo38244, "fdo38244.odt")
{
CPPUNIT_ASSERT_EQUAL(1, getPages());