summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-10-21 16:34:39 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2019-10-21 23:48:39 +0200
commit3aaa2ec8c60330e3fdf21507a235aade4eb63d43 (patch)
tree5b696bcbed38d8b46e74878a918e1903dabb6321
parente399c5a602a690126463d1cec62c511f1e053686 (diff)
tdf#97038: Add unittest
Fixed by e042a83843ed2573dbce9338058b3dc545dd6898 d630f69d90f15bc652a62648b05ea515de78d16a fixes the .doc part Change-Id: Id8bb1fd1a8eb10dcdacc66601b1b5f9f9252bdee Reviewed-on: https://gerrit.libreoffice.org/81248 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/ooxmlimport/data/tdf97038.docxbin0 -> 64161 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport2.cxx7
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf97038.docx b/sw/qa/extras/ooxmlimport/data/tdf97038.docx
new file mode 100644
index 000000000000..8295d5199968
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/tdf97038.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
index e76ba3385a76..f5ff5b3b53e8 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
@@ -103,6 +103,13 @@ DECLARE_OOXMLIMPORT_TEST(testTdf108849, "tdf108849.docx")
getPages());
}
+DECLARE_OOXMLIMPORT_TEST(testTdf97038, "tdf97038.docx")
+{
+ // Without the accompanying fix in place, this test would have failed, as the importer lost the
+ // fLayoutInCell shape property for wrap-though shapes.
+ CPPUNIT_ASSERT(getProperty<bool>(getShapeByName("Kep2"), "IsFollowingTextFlow"));
+}
+
DECLARE_OOXMLIMPORT_TEST(testTdf109524, "tdf109524.docx")
{
uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY);