diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-06-09 10:14:31 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-06-09 11:30:23 +0200 |
commit | 975488594fc88aaba7298448e0ff727ebca7fe85 (patch) | |
tree | 026e33abc4859c5bbe439d853c77a33a28ad0e30 /sw/qa/extras/ww8export | |
parent | b5e07b1339f73841664b28c65639f1638bd7edf4 (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/ww8export')
-rw-r--r-- | sw/qa/extras/ww8export/data/tdf96840.doc | bin | 0 -> 133632 bytes | |||
-rw-r--r-- | sw/qa/extras/ww8export/ww8export3.cxx | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/data/tdf96840.doc b/sw/qa/extras/ww8export/data/tdf96840.doc Binary files differnew file mode 100644 index 000000000000..02cc7559dd55 --- /dev/null +++ b/sw/qa/extras/ww8export/data/tdf96840.doc 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. |