Add another sleep to make menu unit test pass under wxGTK

At least when using GNOME, the frame containing the menu doesn't appear on
screen in time for wxUIActionSimulator to use it without this.
This commit is contained in:
Vadim Zeitlin 2016-02-26 20:40:30 +01:00
parent cceddaf3da
commit 6c2e702357

View File

@ -499,6 +499,12 @@ void MenuTestCase::Events()
m_frame->SetFocus();
wxYield();
#ifdef __WXGTK__
// This is another test which fails with wxGTK without this delay because
// the frame doesn't appear on screen in time.
wxMilliSleep(50);
#endif // __WXGTK__
wxUIActionSimulator sim;
sim.KeyDown(WXK_F1);
sim.KeyUp(WXK_F1);