X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c21dcf80f08e800122649557c9b5bcc61263abd1..7e3204b45cf8e1bb882b314d456e75f2a22850d7:/tests/events/propagation.cpp?ds=sidebyside diff --git a/tests/events/propagation.cpp b/tests/events/propagation.cpp index 43adbd39d7..e240dd6e17 100644 --- a/tests/events/propagation.cpp +++ b/tests/events/propagation.cpp @@ -184,7 +184,7 @@ void EventPropagationTestCase::WindowWithoutHandler() TestWindow * const child = new TestWindow(parent, 'c'); - child->ProcessEvent(event); + child->GetEventHandler()->ProcessEvent(event); CPPUNIT_ASSERT_EQUAL( "acpA", g_str ); } @@ -198,10 +198,10 @@ void EventPropagationTestCase::WindowWithHandler() TestEvtHandler h1('1'); child->PushEventHandler(&h1); - wxON_BLOCK_EXIT_OBJ0( *child, wxWindow::PopEventHandler ); + wxON_BLOCK_EXIT_OBJ1( *child, wxWindow::PopEventHandler, false ); TestEvtHandler h2('2'); child->PushEventHandler(&h2); - wxON_BLOCK_EXIT_OBJ0( *child, wxWindow::PopEventHandler ); + wxON_BLOCK_EXIT_OBJ1( *child, wxWindow::PopEventHandler, false ); child->HandleWindowEvent(event); CPPUNIT_ASSERT_EQUAL( "oa2o1cpA", g_str );