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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 30 15:34:29 UTC 2020


 sw/qa/extras/ooxmlexport/data/tdf88126.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport15.cxx  |    6 ++++++
 2 files changed, 6 insertions(+)

New commits:
commit 60dbe21f59a45889c433727d0862c9a4274d94d2
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Oct 30 14:40:00 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri Oct 30 16:33:46 2020 +0100

    tdf#88126: sw_ooxmlexport15: Add unittest
    
    Change-Id: If150e6f7c9a0ccd203674c3c00fb40231b3d6a8c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105069
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf88126.docx b/sw/qa/extras/ooxmlexport/data/tdf88126.docx
new file mode 100644
index 000000000000..9d4d2d5d0f8c
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf88126.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
index a9618eb20145..c2466dc809e6 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
@@ -105,6 +105,12 @@ DECLARE_OOXMLEXPORT_TEST(testTdf133334_followPgStyle, "tdf133334_followPgStyle.o
     CPPUNIT_ASSERT_EQUAL(2, getPages());
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf88126, "tdf88126.docx")
+{
+    // Without the fix in place, this test would have hung
+    CPPUNIT_ASSERT_EQUAL(11, getPages());
+}
+
 DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf118701, "tdf118701.docx")
 {
     // This was 6, related to moving inline images after the page breaks


More information about the Libreoffice-commits mailing list