X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c6b938377211da1987c8b6e44134fb0f32c84df..744d91d41f4756ca4ec61f0a375068a239a6126f:/tests/controls/frametest.cpp?ds=sidebyside diff --git a/tests/controls/frametest.cpp b/tests/controls/frametest.cpp index dcdb22acc1..4bee2246f2 100644 --- a/tests/controls/frametest.cpp +++ b/tests/controls/frametest.cpp @@ -62,26 +62,20 @@ void FrameTestCase::tearDown() void FrameTestCase::Iconize() { #ifdef __WXMSW__ - wxTestableFrame* testframe = wxStaticCast(wxTheApp->GetTopWindow(), - wxTestableFrame); - - EventCounter count(m_frame, wxEVT_ICONIZE); + EventCounter iconize(m_frame, wxEVT_ICONIZE); m_frame->Iconize(); m_frame->Iconize(false); - CPPUNIT_ASSERT_EQUAL(2, testframe->GetEventCount()); + CPPUNIT_ASSERT_EQUAL(2, iconize.GetCount()); #endif } void FrameTestCase::Close() { - wxTestableFrame* testframe = wxStaticCast(wxTheApp->GetTopWindow(), - wxTestableFrame); - - EventCounter count(m_frame, wxEVT_CLOSE_WINDOW); + EventCounter close(m_frame, wxEVT_CLOSE_WINDOW); m_frame->Close(); - CPPUNIT_ASSERT_EQUAL(1, testframe->GetEventCount()); + CPPUNIT_ASSERT_EQUAL(1, close.GetCount()); }