summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Melenchuk <Vasily.Melenchuk@cib.de>2017-05-12 16:14:51 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-05-12 18:09:13 +0200
commitcffc5a04661fc0a84dff9fa5da954236d88a8b38 (patch)
treed7aeca13f367e249e54e73160dde633a5c886252
parent534746c99e88270ec766aeb12970a282a0a16520 (diff)
tdf#100072 extra test for DOCX shape import with zero height
Corresponding bug is already fixed in tdf#107104. However created tests do care only for width, but not for height, like we have in this testcase. Change-Id: I6f24e66e3c5e9289e158e0ca043ef01a3ea42880 Reviewed-on: https://gerrit.libreoffice.org/37538 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf100072.docxbin0 -> 7034 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport9.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf100072.docx b/sw/qa/extras/ooxmlexport/data/tdf100072.docx
new file mode 100644
index 000000000000..02b885b9aafa
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf100072.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
index a4f847a99a70..7370fe83da3d 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
@@ -472,6 +472,15 @@ DECLARE_OOXMLEXPORT_TEST(testTdf107033, "tdf107033.docx")
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(25), getProperty<sal_Int32>(xPageStyle, "FootnoteLineRelativeWidth"));
}
+DECLARE_OOXMLEXPORT_TEST(testTdf100072, "tdf100072.docx")
+{
+ // Ensure that shape has non-zero height
+ CPPUNIT_ASSERT(getShape(1)->getSize().Height > 0);
+
+ // Ensure that shape left corner is within page (positive)
+ CPPUNIT_ASSERT(getShape(1)->getPosition().X > 0);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */