[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 28 19:56:52 UTC 2020
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 <xiscofauli at libreoffice.org>
AuthorDate: Tue Apr 28 17:33:55 2020 +0200
Commit: Xisco Faulí <xiscofauli at 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í <xiscofauli at 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");
More information about the Libreoffice-commits
mailing list