[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 31 09:17:05 UTC 2020
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 <xiscofauli at libreoffice.org>
AuthorDate: Mon Mar 30 16:41:00 2020 +0200
Commit: Xisco Faulí <xiscofauli at 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í <xiscofauli at 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);
More information about the Libreoffice-commits
mailing list