sw/qa/extras/odfexport/data/tdf129520.docx |binary sw/qa/extras/odfexport/odfexport.cxx | 12 ++++++++++++ 2 files changed, 12 insertions(+)
New commits: commit d8ca58f46a99d4502f75ce8177b09d2841ce3489 Author: Xisco Fauli <[email protected]> AuthorDate: Wed Sep 16 19:11:02 2020 +0200 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Sep 17 10:41:22 2020 +0200 tdf#129520 : sw_odfexport: Add unittest Change-Id: I6df242c276ceafb325d8d9fc609dae8bb449093b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102881 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sw/qa/extras/odfexport/data/tdf129520.docx b/sw/qa/extras/odfexport/data/tdf129520.docx new file mode 100644 index 000000000000..4f74826ada5c Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf129520.docx differ diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index bf7b02e13704..264edddea196 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -1620,6 +1620,18 @@ DECLARE_ODFEXPORT_TEST(testBtlrFrame, "btlr-frame.odt") CPPUNIT_ASSERT(!pFlyFrame->IsVertLRBT()); } +DECLARE_ODFEXPORT_TEST(testTdf129520, "tdf129520.docx") +{ + CPPUNIT_ASSERT_EQUAL(1, getPages()); + CPPUNIT_ASSERT_EQUAL(OUString("M"), getParagraph(1)->getString()); + + // Without this fix in place, this test would have failed with + // - Expected: Ma + // - Actual : + CPPUNIT_ASSERT_EQUAL(OUString("Ma"), getParagraph(2)->getString()); + CPPUNIT_ASSERT_EQUAL(OUString("1815"), getParagraph(3)->getString()); +} + DECLARE_ODFEXPORT_TEST(testFdo86963, "fdo86963.odt") { CPPUNIT_ASSERT_EQUAL(1, getPages()); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
