sw/qa/extras/ooxmlexport/data/tdf137295.doc |binary
 sw/qa/extras/ooxmlexport/ooxmlexport15.cxx  |   10 ++++++++++
 2 files changed, 10 insertions(+)

New commits:
commit 32af6bcd0c3634f860fc529acb17648e73051c73
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Oct 8 12:12:40 2020 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Oct 8 16:20:33 2020 +0200

    tdf#137295: sw_ooxmlexport15: Add unittest
    
    Change-Id: I49f5478284f894e0b05ff0a235c88cf7b6c0792c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104081
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf137295.doc 
b/sw/qa/extras/ooxmlexport/data/tdf137295.doc
new file mode 100644
index 000000000000..915b7d62d96b
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf137295.doc differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
index dfce2901c59a..65286eaa08b8 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
@@ -791,6 +791,16 @@ DECLARE_OOXMLEXPORT_TEST(testImageSpaceSettings, 
"tdf135047_ImageSpaceSettings.f
     assertXPath(pXmlDoc, 
"/w:document/w:body/w:p[1]/w:r[1]/w:drawing/wp:anchor", "distR", "90170");
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf137295, "tdf137295.doc")
+{
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+
+    // Without the fix in place, the test would have failed with
+    // - Expected: 2
+    // - Actual  : 1
+    CPPUNIT_ASSERT_EQUAL(2, getShapes());
+}
+
 DECLARE_OOXMLEXPORT_TEST(testTdf135660, "tdf135660.docx")
 {
     CPPUNIT_ASSERT_EQUAL(1, getShapes());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to