summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-04-07 16:17:26 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2020-04-07 17:58:35 +0200
commitbb0c4119b7e63e370bb3a66d0debbe5e3b19b67a (patch)
treebcdabf5077eb916e057499855ee6ba2c5aedcbac /sw/qa
parentf6328abe3fcd7fb2ec72779ba3754abe761f626b (diff)
tdf#107020: Add unittest
Change-Id: I6d3cf82651d07e147f0dce0e6c41230ab0ca3894 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91830 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf107020.docxbin0 -> 404889 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport14.cxx14
2 files changed, 14 insertions, 0 deletions
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
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf107020.docx
Binary files 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");