summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-06-15 21:47:20 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2020-06-16 09:25:56 +0200
commit11d21b3c1f7754b5d13ae9ea88da562ec74366ff (patch)
treedddb89f3cd92c96b8162678dd6145cff12a9efea /sw
parent18ab61cd404518c1fde1464429f08cc8d12d6f85 (diff)
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@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf129582.docxbin0 -> 129975 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport7.cxx7
2 files changed, 7 insertions, 0 deletions
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
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf129582.docx
Binary files 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");