Enable tests for wxTopLevelWindow::IsActive() for wxGTK too

After the addition of EventCounter::WaitEvent() call in the previous
commit these checks pass as well (with another WaitEvent() added to wait
for deactivation event as well).
This commit is contained in:
Vadim Zeitlin
2019-01-29 00:16:52 +01:00
parent e599e26395
commit f9323e4b87

View File

@@ -53,18 +53,14 @@ static void TopLevelWindowShowTest(wxTopLevelWindow* tlw)
tlw->Show(true);
countActivate.WaitEvent();
// wxGTK needs many event loop iterations before the TLW becomes active and
// this doesn't happen in this test, so avoid checking for it.
#ifndef __WXGTK__
CHECK(tlw->IsActive());
#endif
CHECK(tlw->IsShown());
tlw->Hide();
CHECK(!tlw->IsShown());
#ifndef __WXGTK__
countActivate.WaitEvent();
CHECK(!tlw->IsActive());
#endif
}
TEST_CASE("wxTopLevel::Show", "[tlw][show]")