X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3778b4d9c7eebc39f496a9dd055638e06fb9140..9e1da4827a0ec18f9766d664b9af12c25e3f71fb:/tests/controls/checklistboxtest.cpp?ds=sidebyside diff --git a/tests/controls/checklistboxtest.cpp b/tests/controls/checklistboxtest.cpp index 9f2711ab30..16f3664d26 100644 --- a/tests/controls/checklistboxtest.cpp +++ b/tests/controls/checklistboxtest.cpp @@ -65,10 +65,7 @@ void CheckListBoxTestCase::tearDown() void CheckListBoxTestCase::Check() { - wxTestableFrame* frame = wxStaticCast(wxTheApp->GetTopWindow(), - wxTestableFrame); - - EventCounter count(m_check, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED); + EventCounter toggled(m_check, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED); wxArrayString testitems; testitems.Add("item 0"); @@ -83,7 +80,7 @@ void CheckListBoxTestCase::Check() m_check->Check(1, false); //We should not get any events when changing this from code - CPPUNIT_ASSERT_EQUAL(0, frame->GetEventCount()); + CPPUNIT_ASSERT_EQUAL(0, toggled.GetCount()); CPPUNIT_ASSERT_EQUAL(true, m_check->IsChecked(0)); CPPUNIT_ASSERT_EQUAL(false, m_check->IsChecked(1));