[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 28 17:04:24 UTC 2020
sw/qa/extras/ooxmlexport/data/tdf132305.docx |binary
sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 6 ++++++
2 files changed, 6 insertions(+)
New commits:
commit 781a1a82231ee4b95733dfb76249224948d6d894
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Apr 28 16:07:59 2020 +0200
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Tue Apr 28 19:03:49 2020 +0200
tdf#132305: sw: Add unittest
Change-Id: I32ad69404b4d6cd25ec887567bb4733a59f267da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93079
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf132305.docx b/sw/qa/extras/ooxmlexport/data/tdf132305.docx
new file mode 100644
index 000000000000..e6b9ad6b70d0
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf132305.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
index 12f6cb0677d7..ef3f5e6fc259 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
@@ -625,6 +625,12 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(test_OpeningBrace, "2120112713_OpenBrace.doc
assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/m:oMath[1]/m:d[1]/m:dPr[1]/m:begChr[1]","val","");
}
+DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(test_Tdf132305, "tdf132305.docx")
+{
+ xmlDocPtr pXmlDoc = parseExport("word/document.xml");
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/m:oMath[1]/m:bar/m:barPr/m:pos","val","top");
+}
+
// Checks that all runs of the field have text properties.
// Old behaviour: only first run has text properties of the field
//
More information about the Libreoffice-commits
mailing list