diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-28 16:07:59 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-28 19:03:49 +0200 |
commit | 781a1a82231ee4b95733dfb76249224948d6d894 (patch) | |
tree | cd2366013477291a287cc1a35a24d12d5ee9c809 /sw | |
parent | e9e1b0f4505d4e90727900caf6ed5053fc6c30f3 (diff) |
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@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf132305.docx | bin | 0 -> 13398 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf132305.docx b/sw/qa/extras/ooxmlexport/data/tdf132305.docx Binary files differnew file mode 100644 index 000000000000..e6b9ad6b70d0 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf132305.docx 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 // |