Test that showing a TLW generates wxActivateEvent
Wait until wxEVT_ACTIVATE arrives and check that it does.
This commit is contained in:
parent
6b11c372a1
commit
e599e26395
1 changed files with 6 additions and 0 deletions
|
|
@ -45,7 +45,13 @@ static void TopLevelWindowShowTest(wxTopLevelWindow* tlw)
|
|||
CHECK(!tlw->IsActive());
|
||||
#endif
|
||||
|
||||
// Note that at least under MSW, ShowWithoutActivating() still generates
|
||||
// wxActivateEvent, so we must only start counting these events after the
|
||||
// end of the tests above.
|
||||
EventCounter countActivate(tlw, wxEVT_ACTIVATE);
|
||||
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue