tests: fixup test_frame on wxGTK

This commit is contained in:
Scott Talbert
2021-12-30 17:40:24 -05:00
parent ecb6682c65
commit f60284fe64

View File

@@ -54,10 +54,13 @@ class frame_Tests(wtc.WidgetTestCase):
f = wx.Frame(self.frame, title="Title", pos=(50,50), size=(100,100))
f.Show()
f.Maximize()
self.myYield()
self.waitFor(100)
assert f.IsMaximized()
f.Restore()
self.myYield()
if 'wxGTK' in wx.PlatformInfo:
f.Maximize(False)
else:
f.Restore()
self.waitFor(100)
assert not f.IsMaximized()
f.Close()