]> git.saurik.com Git - wxWidgets.git/commitdiff
Disable unit test for wxColour alpha under wxX11.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2010 13:52:35 +0000 (13:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2010 13:52:35 +0000 (13:52 +0000)
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

tests/graphics/colour.cpp

index 2f0691940991a98d20181b283c911d2e3b79400b..dfec5fea61e9f4cbb79bf1af41688d384edb2453 100644 (file)
@@ -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__
 }