Wait for the focus event to occur in the unit test

The test failed unless we dispatched events with wxGTK (both 2 and 3).
This commit is contained in:
Vadim Zeitlin
2017-11-07 15:44:18 +01:00
parent 66324470f1
commit f0a32f0e1f

View File

@@ -142,7 +142,7 @@ void WindowTestCase::FocusEvent()
m_window->SetFocus();
CPPUNIT_ASSERT_EQUAL(1, setfocus.GetCount());
WX_ASSERT_EVENT_OCCURS(setfocus, 1);
CPPUNIT_ASSERT(m_window->HasFocus());
wxButton* button = new wxButton(wxTheApp->GetTopWindow(), wxID_ANY);