[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 3 12:12:33 UTC 2020
sw/qa/extras/ooxmlexport/data/tdf123435.docx |binary
sw/qa/extras/ooxmlexport/ooxmlexport13.cxx | 10 ++++++++++
2 files changed, 10 insertions(+)
New commits:
commit 4a43e781d0920c1534cd44339e624f9cc76ae298
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Sep 3 12:18:36 2020 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Sep 3 14:11:54 2020 +0200
tdf#123435: sw_ooxmlexport13: Add unittest
Change-Id: Ie3ddce2dc92433bd5feca97bd4d467530eb38983
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101993
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf123435.docx b/sw/qa/extras/ooxmlexport/data/tdf123435.docx
new file mode 100644
index 000000000000..02d8cd1e9b63
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf123435.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx
index 0a35aaa7df09..cc2a19c44cd2 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx
@@ -592,6 +592,16 @@ DECLARE_OOXMLEXPORT_TEST(testInputListExport, "tdf122186_input_list.odt")
}
}
+DECLARE_OOXMLEXPORT_TEST(testTdf123435, "tdf123435.docx")
+{
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
+
+ // Without the fix in place, it would have failed with
+ // - Expected: 2
+ // - Actual : 1
+ CPPUNIT_ASSERT_EQUAL(2, getShapes());
+}
+
DECLARE_OOXMLEXPORT_TEST(testTdf116371, "tdf116371.odt")
{
CPPUNIT_ASSERT_EQUAL(1, getShapes());
More information about the Libreoffice-commits
mailing list