[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 22 15:46:29 UTC 2020


 sw/qa/extras/odfexport/data/tdf131621.ott |binary
 sw/qa/extras/odfexport/odfexport.cxx      |    6 ++++++
 2 files changed, 6 insertions(+)

New commits:
commit a0c37548e17807bb0e0402b04e87bcd677fe132f
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Apr 22 12:06:20 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Wed Apr 22 17:45:52 2020 +0200

    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 at libreoffice.org>

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
Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf131621.ott 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().


More information about the Libreoffice-commits mailing list