diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-12-04 09:14:27 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-12-04 17:17:06 +0100 |
commit | 6ac72f5f7584adc11341c6986dc4bf4d5f7f933f (patch) | |
tree | 00356d94390bee30317865afb2e4c4823aae3a9a /sw | |
parent | 5219c6eccb55874c8a8670f44c3f03558384f9b7 (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>
(cherry picked from commit 282bc5a824d103dcf4b19c9cf83698a2334e2e34)
Reviewed-on: https://gerrit.libreoffice.org/45803
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/fodfexport/data/tdf113696-writerimage.odt | bin | 0 -> 18341 bytes | |||
-rw-r--r-- | sw/qa/extras/fodfexport/fodfexport.cxx | 13 |
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 Binary files differnew file mode 100644 index 000000000000..f8aee0836011 --- /dev/null +++ b/sw/qa/extras/fodfexport/data/tdf113696-writerimage.odt 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: */ |