[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 11 19:28:20 UTC 2021
sw/qa/extras/ooxmlexport/data/tdf44278.docx |binary
sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 9 +++++++++
2 files changed, 9 insertions(+)
New commits:
commit 2316e21b2c6f3d1f18613408a8deb41af17c03bb
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Aug 11 20:06:26 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Aug 11 21:27:45 2021 +0200
tdf#44278: sw_ooxmlexport16: Add unittest
Change-Id: I31de23db13083ce98e75d3ec1d65d970161b3b92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120335
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf44278.docx b/sw/qa/extras/ooxmlexport/data/tdf44278.docx
new file mode 100644
index 000000000000..588416cdb09b
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf44278.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index 61f6b0be7176..9533db4d369e 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -177,6 +177,15 @@ DECLARE_OOXMLEXPORT_TEST(testTdf138892_noNumbering, "tdf138892_noNumbering.docx"
CPPUNIT_ASSERT_MESSAGE("Para3: <blank line>", getProperty<OUString>(getParagraph(3), "NumberingStyleName").isEmpty());
}
+DECLARE_OOXMLEXPORT_TEST(testTdf44278, "tdf44278.docx")
+{
+ // Without the fix in place, this test would have failed with
+ // - Expected: 1
+ // - Actual : 2
+ CPPUNIT_ASSERT_EQUAL(1, getShapes());
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
DECLARE_OOXMLEXPORT_TEST(testTdf141231_arabicHebrewNumbering, "tdf141231_arabicHebrewNumbering.docx")
{
// The page's numbering type: instead of Hebrew, this was default style::NumberingType::ARABIC (4).
More information about the Libreoffice-commits
mailing list