sw/qa/extras/ooxmlexport/ooxmlexport8.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit c1d234830ac9f278900b3f1875acda598b9b9edb Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Aug 31 17:25:50 2020 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Sep 3 09:59:22 2020 +0200 tdf#91260: Restore unittest removed in b6850bbe95418ecfde404be1696548f18d200c9b and adapt it. The file was not removed Change-Id: Ia34e5c20007c44d23a3a4261f684d348fd8cee9d Change-Id: I81cb688c0961dd1dd8d9fd3099ab32283b991788 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101759 Tested-by: Jenkins Reviewed-by: Attila Bakos <bakos.attilakar...@nisz.hu> Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx index 7d7d5c02f6e8..74375341c60d 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx @@ -506,6 +506,19 @@ DECLARE_OOXMLEXPORT_TEST(testTDF91122, "tdf91122.docx") } } +DECLARE_OOXMLEXPORT_TEST(testTDF91260, "tdf91260.docx") +{ + uno::Reference<text::XTextRange> xFrame(getShape(1), uno::UNO_QUERY); + CPPUNIT_ASSERT(xFrame->getString().startsWith( "Lorem ipsum" ) ); + + //Check the textbox doesn't get shrunk + CPPUNIT_ASSERT_GREATER(sal_Int32(10900), getProperty<sal_Int32>(xFrame, "Height")); + + uno::Reference<drawing::XShape> xShape(getShape(1), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_Int32(5450), xShape->getPosition().X); + CPPUNIT_ASSERT_EQUAL(sal_Int32(21946), xShape->getPosition().Y); +} + DECLARE_OOXMLEXPORT_TEST(testFdo74357, "fdo74357.docx") { // Floating table wasn't converted to a textframe. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits