sw/qa/extras/ooxmlexport/data/tdf115030.docx |binary sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 10 ++++++++++ 2 files changed, 10 insertions(+)
New commits: commit 4abaf53a24b9e0cd8a73cad881977278e35cb633 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Apr 28 17:33:55 2020 +0200 Commit: Xisco FaulĂ <xiscofa...@libreoffice.org> CommitDate: Tue Apr 28 21:56:14 2020 +0200 tdf#115030: sw: Add unittest Change-Id: Ic06c665f9eccfda52f86c5cde00e490ab419edef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93092 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/ooxmlexport/data/tdf115030.docx b/sw/qa/extras/ooxmlexport/data/tdf115030.docx new file mode 100644 index 000000000000..71b983295c69 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf115030.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx index ef3f5e6fc259..e73e7dcfddab 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx @@ -618,6 +618,16 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testDateControl, "date-control.docx") assertXPathContent(pXmlDoc, "/w:document/w:body/w:p/w:sdt/w:sdtContent/w:r/w:t", u"mi\u00E9rcoles, 05 de marzo de 2014"); } +DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(test_Tdf115030, "tdf115030.docx") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + sal_Unicode aDot = {0x02D9}; + sal_Unicode aDobleDot = {0x00A8}; + assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/m:oMath[1]/m:acc/m:accPr/m:chr", "val", OUString(aDot)); + assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/m:oMath[2]/m:acc/m:accPr/m:chr", "val", OUString(aDobleDot)); + assertXPath(pXmlDoc, "/w:document/w:body/w:p[2]/m:oMath[1]/m:acc/m:accPr/m:chr", "val", OUString(aDot)); +} + DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(test_OpeningBrace, "2120112713_OpenBrace.docx") { xmlDocPtr pXmlDoc = parseExport("word/document.xml"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits