summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-12-04 09:14:27 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-12-04 13:48:06 +0100
commit282bc5a824d103dcf4b19c9cf83698a2334e2e34 (patch)
treea5ae3947e83030789a3abaff57a25657c9bfac6e
parentaa768bdbfd7442947cf0756f58c9bfe791ce047a (diff)
Related tdf#113696 Unit test for Writer images fallback graphic
Change-Id: I2f14d6ab9a107f5b50ab0ec83019f86751dd79f6 Reviewed-on: https://gerrit.libreoffice.org/45778 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--sw/qa/extras/fodfexport/data/tdf113696-writerimage.odtbin0 -> 18341 bytes
-rw-r--r--sw/qa/extras/fodfexport/fodfexport.cxx13
2 files changed, 13 insertions, 0 deletions
diff --git a/sw/qa/extras/fodfexport/data/tdf113696-writerimage.odt b/sw/qa/extras/fodfexport/data/tdf113696-writerimage.odt
new file mode 100644
index 000000000000..f8aee0836011
--- /dev/null
+++ b/sw/qa/extras/fodfexport/data/tdf113696-writerimage.odt
Binary files differ
diff --git a/sw/qa/extras/fodfexport/fodfexport.cxx b/sw/qa/extras/fodfexport/fodfexport.cxx
index 6cd00b49ba47..c79d0f35b420 100644
--- a/sw/qa/extras/fodfexport/fodfexport.cxx
+++ b/sw/qa/extras/fodfexport/fodfexport.cxx
@@ -40,5 +40,18 @@ DECLARE_FODFEXPORT_TEST(testTdf113696, "tdf113696.odt")
}
}
+DECLARE_FODFEXPORT_TEST(testTdf113696WriterImage, "tdf113696-writerimage.odt")
+{
+ // Same as testTdf113696, but with a writer image instead of a draw image
+ // (they use different code paths).
+ if (xmlDocPtr pXmlDoc = parseExportedFile())
+ {
+ assertXPath(pXmlDoc, "/office:document/office:body/office:text/text:p/draw:frame/"
+ "draw:image[@loext:mime-type='image/x-vclgraphic']");
+ assertXPath(pXmlDoc, "/office:document/office:body/office:text/text:p/draw:frame/"
+ "draw:image[@loext:mime-type='image/png']");
+ }
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */