summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-04-22 12:06:20 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-04-22 17:45:52 +0200
commita0c37548e17807bb0e0402b04e87bcd677fe132f (patch)
treefa9c3ed4970f62873d693721394576dff2d09b1b /sw/qa/extras/odfexport
parent09023332d0b883b18f12bc3f5417f790d2bbd8ac (diff)
tdf#131621: sw: Add unittest
Change-Id: I3a6f437493caf8b4edde10703b7b7bb67ec1f848 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92684 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r--sw/qa/extras/odfexport/data/tdf131621.ottbin0 -> 29145 bytes
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf131621.ott b/sw/qa/extras/odfexport/data/tdf131621.ott
new file mode 100644
index 000000000000..8590c16ae1ad
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/tdf131621.ott
Binary files differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 7931ee55d6d8..91e0b846d602 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -449,6 +449,12 @@ DECLARE_ODFEXPORT_TEST(testredlineTextFrame, "redlineTextFrame.odt")
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xIndexAccess->getCount());
}
+DECLARE_ODFEXPORT_TEST(testTdf131621, "tdf131621.ott")
+{
+ //Crash test, Check number of pages
+ CPPUNIT_ASSERT_EQUAL( 1, getPages() );
+}
+
DECLARE_ODFEXPORT_TEST(testFdo38244, "fdo38244.odt")
{
// See ooxmlexport's testFdo38244().