sw/qa/extras/ooxmlexport/data/tdf134618.doc |binary sw/qa/extras/ooxmlexport/ooxmlexport12.cxx | 12 ++++++++++++ 2 files changed, 12 insertions(+)
New commits: commit f510f6a0b339522b0146d26630b139e0421a3657 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Jul 16 00:08:58 2020 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Jul 16 10:47:08 2020 +0200 tdf#134618: sw_ooxmlexport12: Add unittest Change-Id: I0b4559e19758475143175d571687884403e6f09b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98867 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/ooxmlexport/data/tdf134618.doc b/sw/qa/extras/ooxmlexport/data/tdf134618.doc new file mode 100644 index 000000000000..693ab87e21dd Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf134618.doc differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx index 340aff5aa055..fd0976601c44 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx @@ -911,6 +911,18 @@ DECLARE_OOXMLEXPORT_TEST(testTdf117137, "tdf117137.docx") CPPUNIT_ASSERT(xPara3->getPropertyValue("NumberingRules").hasValue()); } +DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf134618, "tdf134618.doc") +{ + xmlDocUniquePtr pXmlDoc = parseExport("word/document.xml"); + + //Without the fix it in place, it would have failed with + //- Expected: 1 + //- Actual : 9 + assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r", 1); + + assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r/mc:AlternateContent", 2); +} + DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf99631, "tdf99631.docx") { xmlDocUniquePtr pXmlDoc = parseExport("word/document.xml"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits