diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-04-26 00:09:32 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-05-02 09:35:06 +0200 |
commit | 6a2a2e6e3fa164f234f2880e5ba608676c4eec04 (patch) | |
tree | 456ee689461cae5e0692be33f7f1b4ec47894e84 /sw | |
parent | cfef1b48fd1307833a55aaea3eebbef5ed55e321 (diff) |
extend test with checking the bullet bitmap size
Change-Id: Ib79ab49110d0e04b2f38eb7cc6d1db191857cb87
Reviewed-on: https://gerrit.libreoffice.org/53459
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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") |