diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-07-21 13:14:12 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-07-21 15:41:10 +0200 |
commit | b28878e395cbd028aa3776ce6cefc5f4544482be (patch) | |
tree | 5e5411c0e4769f13faf0ce9f8f78a6e7d27ae69b | |
parent | 389daaa737711136378d784d454eb4bf5bfb0cbc (diff) |
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@libreoffice.org>
-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()); } |