Kaydet (Commit) 74659d01 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

CPPUNIT_ASSERT_EQUAL

Change-Id: I846ff9cc1bc1e4e449542ebe04a4dc322cee821e
üst 8dba4716
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment