[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 7 15:59:13 UTC 2020
sw/qa/extras/ooxmlexport/data/tdf107020.docx |binary
sw/qa/extras/ooxmlexport/ooxmlexport14.cxx | 14 ++++++++++++++
2 files changed, 14 insertions(+)
New commits:
commit bb0c4119b7e63e370bb3a66d0debbe5e3b19b67a
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Apr 7 16:17:26 2020 +0200
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Tue Apr 7 17:58:35 2020 +0200
tdf#107020: Add unittest
Change-Id: I6d3cf82651d07e147f0dce0e6c41230ab0ca3894
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91830
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf107020.docx b/sw/qa/extras/ooxmlexport/data/tdf107020.docx
new file mode 100644
index 000000000000..9c6cf6d9583b
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf107020.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
index abac561df575..e88b902aee0a 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
@@ -70,6 +70,20 @@ DECLARE_OOXMLEXPORT_TEST(testTdf130814model, "tdf130814.docx")
CPPUNIT_ASSERT_EQUAL(OUString("Arial Unicode MS"), getProperty<OUString>(getRun(getParagraph(2), 1), "CharFontNameAsian"));
}
+DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf107020, "tdf107020.docx")
+{
+ xmlDocPtr p_XmlDoc = parseExport("word/document.xml");
+ CPPUNIT_ASSERT(p_XmlDoc);
+ assertXPath(
+ p_XmlDoc, "/w:document/w:body/w:p/w:r/w:drawing/wp:inline/a:graphic/a:graphicData/pic:pic/pic:blipFill/a:srcRect", "l", "4910");
+ assertXPath(
+ p_XmlDoc, "/w:document/w:body/w:p/w:r/w:drawing/wp:inline/a:graphic/a:graphicData/pic:pic/pic:blipFill/a:srcRect", "t", "27183");
+ assertXPath(
+ p_XmlDoc, "/w:document/w:body/w:p/w:r/w:drawing/wp:inline/a:graphic/a:graphicData/pic:pic/pic:blipFill/a:srcRect", "r", "57638");
+ assertXPath(
+ p_XmlDoc, "/w:document/w:body/w:p/w:r/w:drawing/wp:inline/a:graphic/a:graphicData/pic:pic/pic:blipFill/a:srcRect", "b", "48360");
+}
+
DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf130814ooxml, "tdf130814.docx")
{
xmlDocPtr p_XmlDoc = parseExport("word/document.xml");
More information about the Libreoffice-commits
mailing list