[Libreoffice-commits] core.git: sw/qa
Tomaž Vajngerl
tomaz.vajngerl at collabora.co.uk
Wed May 2 07:35:29 UTC 2018
sw/qa/extras/odfexport/odfexport.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 6a2a2e6e3fa164f234f2880e5ba608676c4eec04
Author: Tomaž Vajngerl <tomaz.vajngerl at 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 <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at 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")
More information about the Libreoffice-commits
mailing list