[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 21 21:49:59 UTC 2019


 sw/qa/extras/ooxmlimport/data/tdf97038.docx |binary
 sw/qa/extras/ooxmlimport/ooxmlimport2.cxx   |    7 +++++++
 2 files changed, 7 insertions(+)

New commits:
commit 3aaa2ec8c60330e3fdf21507a235aade4eb63d43
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Oct 21 16:34:39 2019 +0200
Commit:     Xisco FaulĂ­ <xiscofauli at libreoffice.org>
CommitDate: Mon Oct 21 23:48:39 2019 +0200

    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 at libreoffice.org>

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
Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/tdf97038.docx 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);


More information about the Libreoffice-commits mailing list