diff options
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf57155.docx | bin | 0 -> 27287 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport7.cxx | 9 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf57155.docx b/sw/qa/extras/ooxmlexport/data/tdf57155.docx Binary files differnew file mode 100644 index 000000000000..5cca9b3ea9a2 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf57155.docx 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()); } |