sw/qa/extras/ww8export/data/tdf64997.doc |binary
 sw/qa/extras/ww8export/ww8export3.cxx    |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit 02af9b8ef1f87bb6bc5fee22ad184681b20f201a
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Jun 10 10:51:45 2021 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Jun 10 13:37:31 2021 +0200

    tdf#64997: sw_ww8export3: Add unittest
    
    Change-Id: Iba81551157484274f90fea3e9f9f2c34c1daeaf0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116968
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ww8export/data/tdf64997.doc 
b/sw/qa/extras/ww8export/data/tdf64997.doc
new file mode 100644
index 000000000000..d17ef5b84e26
Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf64997.doc differ
diff --git a/sw/qa/extras/ww8export/ww8export3.cxx 
b/sw/qa/extras/ww8export/ww8export3.cxx
index ecf30b99806b..ffdf64cf5f1c 100644
--- a/sw/qa/extras/ww8export/ww8export3.cxx
+++ b/sw/qa/extras/ww8export/ww8export3.cxx
@@ -272,6 +272,14 @@ DECLARE_WW8EXPORT_TEST(testTdf96840, "tdf96840.doc")
 {
     // Without the fix in place, this test would have hung at import time
     CPPUNIT_ASSERT_EQUAL(3, getPages());
+    CPPUNIT_ASSERT_EQUAL(4, getShapes());
+}
+
+DECLARE_WW8EXPORT_TEST(testTdf64997, "tdf64997.doc")
+{
+    // Without the fix in place, this test would have hung at import time
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+    CPPUNIT_ASSERT_EQUAL(4, getShapes());
 }
 
 DECLARE_WW8EXPORT_TEST(testTdf139495_tinyHeader, "tdf139495_tinyHeader.doc")
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to