diff options
author | Thorsten Behrens <thb@openoffice.org> | 2006-07-12 14:09:45 +0000 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2006-07-12 14:09:45 +0000 |
commit | 41aac5e01a735244839680528ae6245f1520ceee (patch) | |
tree | f452932cdc603bfd19055625c2a00ebaa62143b5 /basebmp/test/basictest.cxx | |
parent | 9f247bf4cc73845037d585c11a27df5210071b10 (diff) |
#i65904# Finished drawMaskedBitmap(); reorganized accessor functors; added test case for drawMaskedBitmap()
Diffstat (limited to 'basebmp/test/basictest.cxx')
-rw-r--r-- | basebmp/test/basictest.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/basebmp/test/basictest.cxx b/basebmp/test/basictest.cxx index baffe6718ad2..46776ce061ee 100644 --- a/basebmp/test/basictest.cxx +++ b/basebmp/test/basictest.cxx @@ -4,9 +4,9 @@ * * $RCSfile: basictest.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: thb $ $Date: 2006-07-11 11:38:56 $ + * last change: $Author: thb $ $Date: 2006-07-12 15:09:45 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -114,6 +114,12 @@ public: pDevice->getScanlineFormat() == Format::ONE_BIT_MSB_PAL ); CPPUNIT_ASSERT_MESSAGE("Scanline len", pDevice->getScanlineStride() == (aSize2.getY() + 7)/8 ); + CPPUNIT_ASSERT_MESSAGE("Palette existence", + pDevice->getPalette() ); + CPPUNIT_ASSERT_MESSAGE("Palette entry 0 is black", + (*pDevice->getPalette())[0] == Color(0) ); + CPPUNIT_ASSERT_MESSAGE("Palette entry 1 is white", + (*pDevice->getPalette())[1] == Color(0xFFFFFFFF) ); } void testPixelFuncs() |