X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbdee10d5f9d3aea0bd329d629d16f172038f48c..c063adebbad51e9ba8727a5e37d89190807864a4:/tests/events/propagation.cpp diff --git a/tests/events/propagation.cpp b/tests/events/propagation.cpp index 49d6fac0a2..a9bfcfba56 100644 --- a/tests/events/propagation.cpp +++ b/tests/events/propagation.cpp @@ -197,7 +197,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( EventPropagationTestCase ); -// 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( EventPropagationTestCase, "EventPropagationTestCase" ); void EventPropagationTestCase::setUp() @@ -313,10 +313,11 @@ void EventPropagationTestCase::ScrollWindowWithoutHandler() TestScrollWindow * const win = new TestScrollWindow(parent); +#if !defined(__WXOSX__) && !defined(__WXGTK3__) wxPaintEvent event(win->GetId()); win->ProcessWindowEvent(event); CPPUNIT_ASSERT_EQUAL( "PD", g_str ); - +#endif g_str.clear(); wxCommandEvent eventCmd(TEST_EVT); win->HandleWindowEvent(eventCmd); @@ -330,6 +331,7 @@ void EventPropagationTestCase::ScrollWindowWithHandler() TestScrollWindow * const win = new TestScrollWindow(parent); +#if !defined(__WXOSX__) && !defined(__WXGTK3__) TestPaintEvtHandler h('h'); win->PushEventHandler(&h); wxON_BLOCK_EXIT_OBJ1( *win, wxWindow::PopEventHandler, false ); @@ -337,6 +339,7 @@ void EventPropagationTestCase::ScrollWindowWithHandler() wxPaintEvent event(win->GetId()); win->ProcessWindowEvent(event); CPPUNIT_ASSERT_EQUAL( "ohPD", g_str ); +#endif g_str.clear(); wxCommandEvent eventCmd(TEST_EVT);