summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-10-26 13:41:16 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-10-26 19:27:58 +0100
commit8f362f1bc5ceca9bde282b5db98282b1ab132309 (patch)
treeb66dc57974147c10c9dea788b2eba89ec11bcfac /sw/qa/extras/odfexport
parentf63afb95b5c2d80d33a35820ef1d9abd9e70d3ca (diff)
tdf#130314: sw_odfexport: Add unittest
Change-Id: Ie099be1e8eb9a27463886ba62d14e7d0e8cf7296 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104810 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r--sw/qa/extras/odfexport/data/tdf130314.docxbin0 -> 31668 bytes
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf130314.docx b/sw/qa/extras/odfexport/data/tdf130314.docx
new file mode 100644
index 000000000000..592ffbf5b3b4
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/tdf130314.docx
Binary files differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 08166b3c2ccb..6c1f2d6ccff8 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -226,6 +226,12 @@ DECLARE_ODFEXPORT_TEST(testTdf43569, "tdf43569_conditionalfield.doc")
CPPUNIT_ASSERT(xFields->hasMoreElements());
}
+DECLARE_ODFEXPORT_TEST(testTdf130314, "tdf130314.docx")
+{
+ // Without the fix in place, this test would have hung
+ CPPUNIT_ASSERT_EQUAL(2, getPages());
+}
+
DECLARE_ODFEXPORT_TEST(testTdf103567, "tdf103567.odt")
{
CPPUNIT_ASSERT_EQUAL(1, getShapes());