summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-16 14:43:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-16 14:43:27 +0200
commitca216af0fae6fa178c8d1debaabdeb2246bc8e63 (patch)
treefc127be9fc301bea1959abd1d173d3cd2a551de0
parent529ab4e735c1263f0bf5063779042898fc06e21e (diff)
Improve test
Change-Id: If0983696bf9a44bda6edeb746c121446106a95c5
-rw-r--r--vcl/qa/cppunit/canvasbitmaptest.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/canvasbitmaptest.cxx b/vcl/qa/cppunit/canvasbitmaptest.cxx
index ebbedb0776ac..c3e8cac179d1 100644
--- a/vcl/qa/cppunit/canvasbitmaptest.cxx
+++ b/vcl/qa/cppunit/canvasbitmaptest.cxx
@@ -177,10 +177,15 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
if( nOriginalDepth > 8 )
{
const Color aCol(COL_GREEN);
- CPPUNIT_ASSERT_MESSAGE( "Sixth pixel is not green",
- pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) &&
- pRGBStart[5].Green == vcl::unotools::toDoubleColor(aCol.GetGreen()) &&
- pRGBStart[5].Blue == vcl::unotools::toDoubleColor(aCol.GetBlue()));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(
+ "Sixth pixel is not green (red component)",
+ vcl::unotools::toDoubleColor(aCol.GetRed()), pRGBStart[5].Red);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(
+ "Sixth pixel is not green (green component)",
+ vcl::unotools::toDoubleColor(aCol.GetGreen()), pRGBStart[5].Green);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(
+ "Sixth pixel is not green (blue component)",
+ vcl::unotools::toDoubleColor(aCol.GetBlue()), pRGBStart[5].Blue);
}
else if( nDepth <= 8 )
{