summaryrefslogtreecommitdiff
path: root/basebmp/test/basictest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basebmp/test/basictest.cxx')
-rw-r--r--basebmp/test/basictest.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/basebmp/test/basictest.cxx b/basebmp/test/basictest.cxx
index 20a3e09df063..ac0a94c98d9e 100644
--- a/basebmp/test/basictest.cxx
+++ b/basebmp/test/basictest.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: basictest.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: thb $ $Date: 2006-07-12 22:47:21 $
+ * last change: $Author: thb $ $Date: 2006-07-13 12:03:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -248,7 +248,7 @@ public:
CPPUNIT_ASSERT_MESSAGE("get/setPixel roundtrip #10",
pDevice->getPixel(aPt) == aCol4);
- const Color aCol5(0x0F0F0F0F);
+ const Color aCol5(0x0F3F2F1F);
pDevice->setPixel( aPt2, aCol5, DrawMode_PAINT );
CPPUNIT_ASSERT_MESSAGE("get/setPixel roundtrip #11",
pDevice->getPixel(aPt2) == aCol5);
@@ -257,6 +257,11 @@ public:
pDevice->setPixel( aPt3, aCol6, DrawMode_PAINT );
CPPUNIT_ASSERT_MESSAGE("get/setPixel roundtrip #12",
pDevice->getPixel(aPt3) == aCol6);
+
+ CPPUNIT_ASSERT_MESSAGE("raw pixel value #4",
+ pDevice->getBuffer()[2] == 0x3F
+ && pDevice->getBuffer()[1] == 0x2F
+ && pDevice->getBuffer()[0] == 0x1F);
}
// 32bpp