sw/qa/extras/odfexport/odfexport.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 6a2a2e6e3fa164f234f2880e5ba608676c4eec04 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> Date: Thu Apr 26 00:09:32 2018 +0900 extend test with checking the bullet bitmap size Change-Id: Ib79ab49110d0e04b2f38eb7cc6d1db191857cb87 Reviewed-on: https://gerrit.libreoffice.org/53459 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 6872be59ebab..d1d544ea22e5 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -1942,6 +1942,12 @@ DECLARE_ODFEXPORT_TEST(testBulletAsImage, "BulletAsImage.odt") xBitmap = aProperties[i].Value.get<uno::Reference<awt::XBitmap>>(); } CPPUNIT_ASSERT(xBitmap.is()); + + Graphic aGraphic(uno::Reference<graphic::XGraphic>(xBitmap, uno::UNO_QUERY)); + CPPUNIT_ASSERT_EQUAL(GraphicType::Bitmap, aGraphic.GetType()); + CPPUNIT_ASSERT(aGraphic.GetSizeBytes() > sal_uLong(0)); + CPPUNIT_ASSERT_EQUAL(15L, aGraphic.GetSizePixel().Width()); + CPPUNIT_ASSERT_EQUAL(15L, aGraphic.GetSizePixel().Height()); } DECLARE_ODFEXPORT_TEST(testSignatureLineProperties, "signatureline-properties.fodt") _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits