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:
parent
559765ca62
commit
4b659f6c2f
2 changed files with 7 additions and 0 deletions
BIN
sw/qa/extras/ww8export/data/tdf129247.docx
Normal file
BIN
sw/qa/extras/ww8export/data/tdf129247.docx
Normal file
Binary file not shown.
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue