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>
This commit is contained in:
Xisco Fauli 2020-06-16 11:43:11 +02:00
parent 559765ca62
commit 4b659f6c2f
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View file

@ -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());