[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 23 21:09:54 UTC 2020


 sw/qa/extras/ooxmlexport/data/tdf138374.odt |binary
 sw/qa/extras/ooxmlexport/ooxmlexport15.cxx  |   11 +++++++++++
 2 files changed, 11 insertions(+)

New commits:
commit da2206c29f0d11914e68332691ab7699b1fd9b45
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Nov 23 15:51:09 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Nov 23 22:09:14 2020 +0100

    tdf#138374: sw_ooxmlexport15: Add unittest
    
    Change-Id: Ie0bb8fa230f092fa3b0c96e47af4d553c6ff2db5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106424
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf138374.odt b/sw/qa/extras/ooxmlexport/data/tdf138374.odt
new file mode 100644
index 000000000000..86e3f87099d2
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf138374.odt differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
index b9ae69668c6d..acc87b9199aa 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
@@ -679,6 +679,17 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf135655, "tdf135655.odt")
     CPPUNIT_ASSERT_EQUAL(OUString("#00A933"), sXFillColVal);
 }
 
+DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf138374, "tdf138374.odt")
+{
+    xmlDocUniquePtr pXmlDocument = parseExport("word/document.xml");
+    assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "fillcolor", "#ffd320");
+    assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "coordsize", "1315,6116");
+    assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "path",
+            "m0,0l1314,0l1314,5914l416,5914l416,6115l106,5715l416,5415l416,5715l1014,5715l1014,224l0,224l0,16l0,0e");
+    assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "style",
+            "position:absolute;margin-left:394.3pt;margin-top:204pt;width:37.2pt;height:173.3pt;mso-wrap-style:none;v-text-anchor:middle");
+}
+
 DECLARE_OOXMLEXPORT_TEST(testTdf134609_gridAfter, "tdf134609_gridAfter.docx")
 {
     uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY);


More information about the Libreoffice-commits mailing list