X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/232fdc630c42eb165f7659981043e794be03b3b7..c29c95fe24973b94fd724db767193171ca7c513d:/tests/controls/buttontest.cpp diff --git a/tests/controls/buttontest.cpp b/tests/controls/buttontest.cpp index bb540b2cfc..fbfb1b239d 100644 --- a/tests/controls/buttontest.cpp +++ b/tests/controls/buttontest.cpp @@ -61,7 +61,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( ButtonTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ButtonTestCase, "ButtonTestCase" ); void ButtonTestCase::setUp() @@ -147,7 +147,7 @@ void ButtonTestCase::Auth() void ButtonTestCase::BitmapMargins() { - //Some functions only work on specific platfroms in which case we can use + //Some functions only work on specific platforms in which case we can use //a preprocessor check #ifdef __WXMSW__ //We must set a bitmap before we can set its margins, when writing unit @@ -167,19 +167,15 @@ void ButtonTestCase::BitmapMargins() void ButtonTestCase::Bitmap() { -#if !defined(__WXGTK__) && !defined(__WXOSX__) //We start with no bitmaps CPPUNIT_ASSERT(!m_button->GetBitmap().IsOk()); - //Set bitmap should set a bitmap for all states - m_button->SetBitmap(wxArtProvider::GetIcon(wxART_INFORMATION, wxART_OTHER, + + m_button->SetBitmap(wxArtProvider::GetIcon(wxART_INFORMATION, + wxART_OTHER, wxSize(32, 32))); - CPPUNIT_ASSERT(m_button->GetBitmapDisabled().IsOk()); - CPPUNIT_ASSERT(m_button->GetBitmapPressed().IsOk()); - CPPUNIT_ASSERT(m_button->GetBitmapCurrent().IsOk()); - CPPUNIT_ASSERT(m_button->GetBitmapFocus().IsOk()); -#endif + CPPUNIT_ASSERT(m_button->GetBitmap().IsOk()); } #endif //wxUSE_BUTTON