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
This commit is contained in:
parent
1f1dee6b0d
commit
ac98aec510
@ -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__
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user