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

New commits:
commit f03ae4de04495dfaf30dbfbb8b3195dd78310da4
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Mar 30 16:41:00 2020 +0200
Commit:     Xisco Faulí <xiscofa...@libreoffice.org>
CommitDate: Tue Mar 31 11:16:29 2020 +0200

    tdf#114212: Add unittest
    
    Change-Id: I6bdbc039bc4697abad9c5ff967114bd8d39f0cf5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91371
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ooxmlimport/data/tdf114212.docx 
b/sw/qa/extras/ooxmlimport/data/tdf114212.docx
new file mode 100644
index 000000000000..c8985c9185d3
Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/tdf114212.docx differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx 
b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
index 7688e1927acb..b8c2202922d7 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
@@ -112,6 +112,15 @@ DECLARE_OOXMLIMPORT_TEST(testTdf97038, "tdf97038.docx")
     CPPUNIT_ASSERT(getProperty<bool>(getShapeByName("Kep2"), 
"IsFollowingTextFlow"));
 }
 
+DECLARE_OOXMLIMPORT_TEST(testTdf114212, "tdf114212.docx")
+{
+    // Without the accompanying fix in place, this test would have failed with:
+    // - Expected: 1427
+    // - Actual  : 387
+    OUString aTop = parseDump("//fly[1]/infos/bounds", "top");
+    CPPUNIT_ASSERT_EQUAL(OUString("1427"), aTop);
+}
+
 DECLARE_OOXMLIMPORT_TEST(testTdf109524, "tdf109524.docx")
 {
     uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, 
uno::UNO_QUERY);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to