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:
@@ -142,7 +142,7 @@ void WindowTestCase::FocusEvent()
|
|||||||
|
|
||||||
m_window->SetFocus();
|
m_window->SetFocus();
|
||||||
|
|
||||||
CPPUNIT_ASSERT_EQUAL(1, setfocus.GetCount());
|
WX_ASSERT_EVENT_OCCURS(setfocus, 1);
|
||||||
CPPUNIT_ASSERT(m_window->HasFocus());
|
CPPUNIT_ASSERT(m_window->HasFocus());
|
||||||
|
|
||||||
wxButton* button = new wxButton(wxTheApp->GetTopWindow(), wxID_ANY);
|
wxButton* button = new wxButton(wxTheApp->GetTopWindow(), wxID_ANY);
|
||||||
|
Reference in New Issue
Block a user