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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 21 13:41:54 UTC 2020


 sw/qa/extras/ooxmlexport/data/tdf57155.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport7.cxx   |    9 ++++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

New commits:
commit b28878e395cbd028aa3776ce6cefc5f4544482be
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Jul 21 13:14:12 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Jul 21 15:41:10 2020 +0200

    tdf#57155: sw_ooxmlexport7: Add unittest
    
    Change-Id: Idc6f35fdffed9a466c574f20baba6ec75a797d1c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99131
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf57155.docx b/sw/qa/extras/ooxmlexport/data/tdf57155.docx
new file mode 100644
index 000000000000..5cca9b3ea9a2
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf57155.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
index 74e822f2bb27..cb0ed231aabe 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
@@ -156,10 +156,17 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf104539, "tdf104539.odt")
             "dir", "13500000");
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf57155, "tdf57155.docx")
+{
+    CPPUNIT_ASSERT_EQUAL(2, getPages());
+    // Without the fix in place, the image in the header of page 2 wouldn't exist
+    CPPUNIT_ASSERT_EQUAL(4, getShapes());
+}
+
 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
+    // Without the fix in place, the image in the footer of page 2 wouldn't exist
     CPPUNIT_ASSERT_EQUAL(2, getShapes());
 }
 


More information about the Libreoffice-commits mailing list