diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-02-26 14:45:30 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-02-26 09:28:54 +0100 |
commit | 8e157d2608715c0b871bffcb32d79d00ccb72061 (patch) | |
tree | 65fcc24157d61b4305870221ae25c6345d92f796 /sw | |
parent | 0f62b798acf9c53cd6e151daf908a432a02e5771 (diff) |
extend testTextBoxPictureFill - check that the graphic is present
Change-Id: Ib7ee52bbbf4bbbd41adcc7c15740b8d13bbe5bfa
Reviewed-on: https://gerrit.libreoffice.org/50337
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx index 3838641f25ac..f51d918c721e 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx @@ -177,8 +177,12 @@ DECLARE_OOXMLEXPORT_TEST(testTextBoxPictureFill, "textbox_picturefill.docx") { uno::Reference<beans::XPropertySet> xFrame(getShape(1), uno::UNO_QUERY); CPPUNIT_ASSERT_EQUAL(drawing::FillStyle_BITMAP, getProperty<drawing::FillStyle>(xFrame, "FillStyle")); - auto xBitmap = getProperty<uno::Reference<awt::XBitmap>>(xFrame,"FillBitmap"); + auto xBitmap = getProperty<uno::Reference<awt::XBitmap>>(xFrame, "FillBitmap"); CPPUNIT_ASSERT(xBitmap.is()); + uno::Reference<graphic::XGraphic> xGraphic(xBitmap, uno::UNO_QUERY); + CPPUNIT_ASSERT(xGraphic.is()); + Graphic aGraphic(xGraphic); + CPPUNIT_ASSERT(aGraphic); } DECLARE_OOXMLEXPORT_TEST(testFDO73034, "FDO73034.docx") |