summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-06-16 11:43:11 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2020-06-16 13:49:59 +0200
commit4b659f6c2fd72139d923637981786e38b5f68130 (patch)
treef7aaab9e79789fdaef6ca6521fad7418b98e09a6 /sw/qa
parent559765ca62f5e581dd5040bdf24e504cf38b0397 (diff)
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@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ww8export/data/tdf129247.docxbin0 -> 18550 bytes
-rw-r--r--sw/qa/extras/ww8export/ww8export2.cxx7
2 files changed, 7 insertions, 0 deletions
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
--- /dev/null
+++ b/sw/qa/extras/ww8export/data/tdf129247.docx
Binary files 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());