sw/qa/extras/ww8export/data/tdf96840.doc |binary sw/qa/extras/ww8export/ww8export3.cxx | 6 ++++++ 2 files changed, 6 insertions(+)
New commits: commit 975488594fc88aaba7298448e0ff727ebca7fe85 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Jun 9 10:14:31 2021 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Jun 9 11:30:23 2021 +0200 tdf#96840: sw_ww8export3: Add unittest Change-Id: I9bac18844bded21ecf16c040c78b52a6eedeafc4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116883 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/ww8export/data/tdf96840.doc b/sw/qa/extras/ww8export/data/tdf96840.doc new file mode 100644 index 000000000000..02cc7559dd55 Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf96840.doc differ diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx index a0b46cdee465..ecf30b99806b 100644 --- a/sw/qa/extras/ww8export/ww8export3.cxx +++ b/sw/qa/extras/ww8export/ww8export3.cxx @@ -268,6 +268,12 @@ DECLARE_WW8EXPORT_TEST(testTdf122460_header, "tdf122460_header.odt") CPPUNIT_ASSERT(headerIsOn); } +DECLARE_WW8EXPORT_TEST(testTdf96840, "tdf96840.doc") +{ + // Without the fix in place, this test would have hung at import time + CPPUNIT_ASSERT_EQUAL(3, getPages()); +} + DECLARE_WW8EXPORT_TEST(testTdf139495_tinyHeader, "tdf139495_tinyHeader.doc") { // In Word 2003, this is one page, but definitely not six pages. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits