mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Take minimization delay into account
This commit is contained in:
parent
1605f90bcc
commit
f2011ac583
@ -137,10 +137,12 @@ BEGIN_TEST(int, char*[])
|
||||
EventSleep(1000);
|
||||
|
||||
window.Minimize();
|
||||
EventSleep(1000); // Minimization may take some time, e.g. on Ubuntu due to animations
|
||||
EXPECT_TRUE(window.GetFlags() & SDL_WINDOW_MINIMIZED, "May fail on some WMs", NON_FATAL);
|
||||
EventSleep(1000);
|
||||
|
||||
window.Restore();
|
||||
EventSleep(1000); // Restore from minimized state may take some time, e.g. on Ubuntu due to animations
|
||||
EXPECT_TRUE(!(window.GetFlags() & SDL_WINDOW_MINIMIZED));
|
||||
EventSleep(1000);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user