diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-10-08 12:12:40 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-10-08 16:20:33 +0200 |
commit | 32af6bcd0c3634f860fc529acb17648e73051c73 (patch) | |
tree | 1de51d08f7b5c381f9f952a13998e8a30ef0feb8 /sw | |
parent | 0591e107d9a5bb8c60e0693c1bad03004e8169e2 (diff) |
tdf#137295: sw_ooxmlexport15: Add unittest
Change-Id: I49f5478284f894e0b05ff0a235c88cf7b6c0792c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104081
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf137295.doc | bin | 0 -> 26624 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport15.cxx | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf137295.doc b/sw/qa/extras/ooxmlexport/data/tdf137295.doc Binary files differnew file mode 100644 index 000000000000..915b7d62d96b --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf137295.doc diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx index dfce2901c59a..65286eaa08b8 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx @@ -791,6 +791,16 @@ DECLARE_OOXMLEXPORT_TEST(testImageSpaceSettings, "tdf135047_ImageSpaceSettings.f assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:r[1]/w:drawing/wp:anchor", "distR", "90170"); } +DECLARE_OOXMLEXPORT_TEST(testTdf137295, "tdf137295.doc") +{ + CPPUNIT_ASSERT_EQUAL(1, getPages()); + + // Without the fix in place, the test would have failed with + // - Expected: 2 + // - Actual : 1 + CPPUNIT_ASSERT_EQUAL(2, getShapes()); +} + DECLARE_OOXMLEXPORT_TEST(testTdf135660, "tdf135660.docx") { CPPUNIT_ASSERT_EQUAL(1, getShapes()); |