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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 14 07:38:21 UTC 2021


 sw/qa/extras/ooxmlexport/data/tdf139580.odt |binary
 sw/qa/extras/ooxmlexport/ooxmlexport16.cxx  |    7 +++++++
 2 files changed, 7 insertions(+)

New commits:
commit 327cd7c9616339a42d477a68392012292556c2d6
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Jan 13 14:06:11 2021 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Jan 14 08:37:44 2021 +0100

    tdf#139580: sw_ooxmlexport16: Add unittest
    
    Change-Id: I635909b62239e2afb72038c21091b65e22ce8d43
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109227
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf139580.odt b/sw/qa/extras/ooxmlexport/data/tdf139580.odt
new file mode 100644
index 000000000000..48224c8dabf9
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf139580.odt differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index 8c521dcd6c8b..77dda6a55c73 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -38,6 +38,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf138892_noNumbering, "tdf138892_noNumbering.docx"
     CPPUNIT_ASSERT_MESSAGE("Para3: <blank line>", getProperty<OUString>(getParagraph(3), "NumberingStyleName").isEmpty());
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf139580, "tdf139580.odt")
+{
+    // Without the fix in place, this test would have crashed at export time
+    CPPUNIT_ASSERT_EQUAL(2, getShapes());
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
 DECLARE_OOXMLEXPORT_TEST(testTdf138953, "croppedAndRotated.odt")
 {
     CPPUNIT_ASSERT_EQUAL(1, getShapes());


More information about the Libreoffice-commits mailing list