diff options
author | Patrick Jaap <patj@mail.de> | 2017-04-20 15:31:18 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-04-20 20:40:35 +0200 |
commit | d862741423cdf0ef228d34b2a25b09c9401be584 (patch) | |
tree | 779669181b5d82a250bdda25562abec68d6c8cd4 /sw/qa/extras/ooxmlimport | |
parent | df69f1c4aa8db8c9c48b364f0e8809be6d598fd9 (diff) |
tdf#101627 add unit test
unit test for the patch 80b9b6761e8cb974e0cdc0c7be0eb95f8745d86f
Change-Id: I68b7eb686fa52f1851455160e1196f0748935c4c
Reviewed-on: https://gerrit.libreoffice.org/36747
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/qa/extras/ooxmlimport')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/tdf101627.docx | bin | 0 -> 45695 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf101627.docx b/sw/qa/extras/ooxmlimport/data/tdf101627.docx Binary files differnew file mode 100644 index 000000000000..0a1efd8f4295 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/tdf101627.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index 2a6bbf49dd05..9154ef1cfa3c 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -1304,6 +1304,14 @@ DECLARE_OOXMLIMPORT_TEST( testTdf106606, "tdf106606.docx" ) CPPUNIT_ASSERT( FindGraphicBitmapPropertyInNumStyle("WWNum2") ); } +DECLARE_OOXMLIMPORT_TEST(testTdf101627, "tdf101627.docx") +{ + // Do not shrink the textbox in the footer + uno::Reference<text::XTextRange> xFrame(getShape(1), uno::UNO_QUERY); + CPPUNIT_ASSERT(xFrame->getString().startsWith( "1" ) ); + CPPUNIT_ASSERT_EQUAL(sal_Int32(466), getProperty<sal_Int32>(xFrame, "Height")); +} + // tests should only be added to ooxmlIMPORT *if* they fail round-tripping in ooxmlEXPORT CPPUNIT_PLUGIN_IMPLEMENT(); |