diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-02 13:47:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-02 13:47:19 +0100 |
commit | 74659d0174a516d4ed5095e386f925de51121e76 (patch) | |
tree | 6d3cb925ac7de268ee059b52cb1387e77dc35770 /vcl/qa/cppunit | |
parent | 8dba4716d2e7fcaf00cc347d4989c24539ea0fe6 (diff) |
CPPUNIT_ASSERT_EQUAL
Change-Id: I846ff9cc1bc1e4e449542ebe04a4dc322cee821e
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/outdev.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/outdev.cxx b/vcl/qa/cppunit/outdev.cxx index de02ffc04f37..4ae34700c2f2 100644 --- a/vcl/qa/cppunit/outdev.cxx +++ b/vcl/qa/cppunit/outdev.cxx @@ -56,10 +56,10 @@ void VclOutdevTest::testVirtualDevice() } #endif - CPPUNIT_ASSERT(aVDev.GetPixel(Point(0,0)) == COL_WHITE); - CPPUNIT_ASSERT(aVDev.GetPixel(Point(1,2)) == COL_GREEN); - CPPUNIT_ASSERT(aVDev.GetPixel(Point(31,30)) == COL_RED); - CPPUNIT_ASSERT(aVDev.GetPixel(Point(30,31)) == COL_WHITE); + CPPUNIT_ASSERT_EQUAL(COL_WHITE, aVDev.GetPixel(Point(0,0)).GetColor()); + CPPUNIT_ASSERT_EQUAL(COL_GREEN, aVDev.GetPixel(Point(1,2)).GetColor()); + CPPUNIT_ASSERT_EQUAL(COL_RED, aVDev.GetPixel(Point(31,30)).GetColor()); + CPPUNIT_ASSERT_EQUAL(COL_WHITE, aVDev.GetPixel(Point(30,31)).GetColor()); // Gotcha: y and x swap for BitmapReadAccess: deep joy. Bitmap::ScopedReadAccess pAcc(aBmp); |