Kaydet (Commit) 282bc5a8 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Related tdf#113696 Unit test for Writer images fallback graphic

Change-Id: I2f14d6ab9a107f5b50ab0ec83019f86751dd79f6
Reviewed-on: https://gerrit.libreoffice.org/45778Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst aa768bdb
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment