user32/tests: Flush events after test_ShowWindow().
The test minimizes windows, which triggers most window managers to generate focus events on other windows. These events aren't processed until halfway through the next test, test_EnableWindow(), when a message loop is run, and as a result an unexpected window (usually hwndMain) is activated, causing the test to fail. The testbot uses focus-follows-mouse mode, so these focus events were not triggered, thereby causing a success inside the todo block. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3b3c25e17d
commit
0741d193ff
|
@ -6780,6 +6780,8 @@ static void test_ShowWindow(void)
|
|||
ok(EqualRect(&rcEmpty, &rc), "expected %s, got %s\n",
|
||||
wine_dbgstr_rect(&rcEmpty), wine_dbgstr_rect(&rc));
|
||||
DestroyWindow(hwnd);
|
||||
|
||||
flush_events(TRUE);
|
||||
}
|
||||
|
||||
static DWORD CALLBACK enablewindow_thread(LPVOID arg)
|
||||
|
@ -6834,7 +6836,6 @@ static void test_EnableWindow(void)
|
|||
}
|
||||
|
||||
ok(!IsWindowEnabled(hwnd), "window should not be enabled\n");
|
||||
todo_wine
|
||||
check_active_state(hwnd, hwnd, hwnd);
|
||||
ok(0 == GetCapture(), "GetCapture() = %p\n", GetCapture());
|
||||
|
||||
|
|
Loading…
Reference in New Issue