user32/tests: Flush messages more aggressively in a couple of tests.
This commit is contained in:
parent
0db109ffad
commit
ec5e295ef2
|
@ -5868,7 +5868,7 @@ static void test_accelerators(void)
|
||||||
rc.top += (rc.bottom - rc.top)/2;
|
rc.top += (rc.bottom - rc.top)/2;
|
||||||
SetCursorPos(rc.left, rc.top);
|
SetCursorPos(rc.left, rc.top);
|
||||||
|
|
||||||
pump_msg_loop(hwnd, 0);
|
flush_events();
|
||||||
flush_sequence();
|
flush_sequence();
|
||||||
keybd_event(VK_MENU, 0, 0, 0);
|
keybd_event(VK_MENU, 0, 0, 0);
|
||||||
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
|
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
|
||||||
|
@ -8554,7 +8554,7 @@ static void test_TrackMouseEvent(void)
|
||||||
* window and hittest, otherwise TrackMouseEvent calls don't have any
|
* window and hittest, otherwise TrackMouseEvent calls don't have any
|
||||||
* effect.
|
* effect.
|
||||||
*/
|
*/
|
||||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessage(&msg);
|
flush_events();
|
||||||
flush_sequence();
|
flush_sequence();
|
||||||
|
|
||||||
track_query(0, NULL, 0);
|
track_query(0, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue