diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-10-21 16:34:39 +0200 |
---|---|---|
committer | Xisco FaulĂ <xiscofauli@libreoffice.org> | 2019-10-21 23:48:39 +0200 |
commit | 3aaa2ec8c60330e3fdf21507a235aade4eb63d43 (patch) | |
tree | 5b696bcbed38d8b46e74878a918e1903dabb6321 | |
parent | e399c5a602a690126463d1cec62c511f1e053686 (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.docx | bin | 0 -> 64161 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport2.cxx | 7 |
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 Binary files differnew file mode 100644 index 000000000000..8295d5199968 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/tdf97038.docx 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); |