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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 16 07:26:29 UTC 2020


 sw/qa/extras/ooxmlexport/data/tdf129582.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport7.cxx    |    7 +++++++
 2 files changed, 7 insertions(+)

New commits:
commit 11d21b3c1f7754b5d13ae9ea88da562ec74366ff
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Jun 15 21:47:20 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Jun 16 09:25:56 2020 +0200

    tdf#129582: sw: Add unittest
    
    Change-Id: Ica1613d228d86c42f1a167d76661fba8a6a46cdc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96399
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf129582.docx b/sw/qa/extras/ooxmlexport/data/tdf129582.docx
new file mode 100644
index 000000000000..d160262ae745
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf129582.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
index 292af20ac9ee..8bec9a79adea 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
@@ -156,6 +156,13 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf104539, "tdf104539.odt")
             "dir", "13500000");
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf129582, "tdf129582.docx")
+{
+    CPPUNIT_ASSERT_EQUAL(2, getPages());
+    // Without the fix in place, the image on the second footer would be imported
+    CPPUNIT_ASSERT_EQUAL(2, getShapes());
+}
+
 DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testShapeEffectPreservation, "shape-effect-preservation.docx")
 {
     xmlDocUniquePtr pXmlDoc = parseExport("word/document.xml");


More information about the Libreoffice-commits mailing list