From: Vadim Zeitlin Date: Wed, 10 Nov 2010 13:52:35 +0000 (+0000) Subject: Disable unit test for wxColour alpha under wxX11. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ac98aec51084e67e58d58bc61fdeb6a58b3ed75e?ds=inline Disable unit test for wxColour alpha under wxX11. wxX11 doesn't support alpha component of wxColour currently. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/graphics/colour.cpp b/tests/graphics/colour.cpp index 2f06919409..dfec5fea61 100644 --- a/tests/graphics/colour.cpp +++ b/tests/graphics/colour.cpp @@ -63,12 +63,18 @@ void ColourTestCase::GetSetRGB() CPPUNIT_ASSERT_EQUAL( 0xdd, (int)c.Red() ); CPPUNIT_ASSERT_EQUAL( 0xcc, (int)c.Green() ); CPPUNIT_ASSERT_EQUAL( 0xbb, (int)c.Blue() ); + + // wxX11 doesn't support alpha at all currently. +#ifndef __WXX11__ CPPUNIT_ASSERT_EQUAL( 0xaa, (int)c.Alpha() ); +#endif // __WXX11__ // FIXME: at least under wxGTK wxColour ctor doesn't take alpha channel // into account: bug or feature? //CPPUNIT_ASSERT_EQUAL( wxColour(0xaabbccdd), c ); CPPUNIT_ASSERT_EQUAL( 0xbbccdd, c.GetRGB() ); +#ifndef __WXX11__ CPPUNIT_ASSERT_EQUAL( 0xaabbccdd, c.GetRGBA() ); +#endif // __WXX11__ }