summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-12 20:13:22 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:07 +0100
commit856ac32933442378f7e21d1ec6015adcbc2e95b2 (patch)
treed5d739e7ea1d33e50d3302bf0398a3c2b54897fc
parent71a07e886c61b47370ddaaf1b3d4b88971ef9efc (diff)
also check rendering in SvmTest::testBitmaps()
Just like it's done in SvmTest::testBitmapExs() Change-Id: If004853aa12987eae1857c69061bdca114384942
-rw-r--r--vcl/qa/cppunit/svm/svmtest.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx
index bdaaa06fdd8d..5b2330a67805 100644
--- a/vcl/qa/cppunit/svm/svmtest.cxx
+++ b/vcl/qa/cppunit/svm/svmtest.cxx
@@ -963,8 +963,16 @@ void SvmTest::testBitmaps()
pVirtualDev->DrawBitmap(Point(1, 2), Size(3, 4), aBitmap2);
pVirtualDev->DrawBitmap(Point(1, 2), Size(3, 4), Point(2, 1), Size(4, 3), aBitmap3);
- checkBitmaps(writeAndReadStream(aGDIMetaFile));
- checkBitmaps(readFile("bitmaps.svm"));
+ {
+ GDIMetaFile aReloadedGDIMetaFile = writeAndReadStream(aGDIMetaFile);
+ checkBitmaps(aReloadedGDIMetaFile);
+ checkRendering(pVirtualDev, aReloadedGDIMetaFile);
+ }
+ {
+ GDIMetaFile aFileGDIMetaFile = readFile("bitmaps.svm");
+ checkBitmaps(aFileGDIMetaFile);
+ checkRendering(pVirtualDev, aFileGDIMetaFile);
+ }
}
void SvmTest::checkBitmapExs(const GDIMetaFile& rMetaFile)