[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 16 11:50:34 UTC 2020
sw/qa/extras/ww8export/data/tdf129247.docx |binary
sw/qa/extras/ww8export/ww8export2.cxx | 7 +++++++
2 files changed, 7 insertions(+)
New commits:
commit 4b659f6c2fd72139d923637981786e38b5f68130
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Jun 16 11:43:11 2020 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Jun 16 13:49:59 2020 +0200
tdf#129247: sw: Add unittest
Change-Id: Ifda47fdaa40fb6792872afc15405e06ccba40fe8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96450
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/ww8export/data/tdf129247.docx b/sw/qa/extras/ww8export/data/tdf129247.docx
new file mode 100644
index 000000000000..a5ea1c1c1601
Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf129247.docx differ
diff --git a/sw/qa/extras/ww8export/ww8export2.cxx b/sw/qa/extras/ww8export/ww8export2.cxx
index 46cae102045d..2146edd7079b 100644
--- a/sw/qa/extras/ww8export/ww8export2.cxx
+++ b/sw/qa/extras/ww8export/ww8export2.cxx
@@ -469,6 +469,13 @@ DECLARE_WW8EXPORT_TEST(testTdf70838b_verticalRotation, "tdf70838b_verticalRotati
CPPUNIT_ASSERT_MESSAGE("Line is taller, not wider", aLine.GetHeight() > aLine.GetWidth());
}
+DECLARE_WW8EXPORT_TEST( testTdf129247, "tdf129247.docx" )
+{
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
+ // Without the fix in place, the checkbox wouldn't be exported
+ CPPUNIT_ASSERT_EQUAL(1, getShapes());
+}
+
DECLARE_WW8EXPORT_TEST( testActiveXCheckbox, "checkbox_control.odt" )
{
CPPUNIT_ASSERT_EQUAL(2, getShapes());
More information about the Libreoffice-commits
mailing list