[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Mon Oct 26 18:28:41 UTC 2020
sw/qa/extras/odfexport/data/tdf130314.docx |binary
sw/qa/extras/odfexport/odfexport.cxx | 6 ++++++
2 files changed, 6 insertions(+)
New commits:
commit 8f362f1bc5ceca9bde282b5db98282b1ab132309
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Oct 26 13:41:16 2020 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Oct 26 19:27:58 2020 +0100
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 at libreoffice.org>
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
Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf130314.docx 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());
More information about the Libreoffice-commits
mailing list