Commit dfd25067 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

user32/tests: Don't send mouse clicks to other process windows in input tests.

parent b5bb2e2f
......@@ -1899,6 +1899,9 @@ static void test_Input_mouse(void)
ok(!got_button_up, "unexpected WM_LBUTTONUP message\n");
/* click after SetCapture call */
hwnd = CreateWindowA("button", "button", WS_VISIBLE | WS_POPUP,
0, 0, 100, 100, 0, NULL, NULL, NULL);
ok(hwnd != 0, "CreateWindow failed\n");
SetCapture(button_win);
got_button_down = got_button_up = FALSE;
simulate_click(FALSE, 50, 50);
......@@ -1920,6 +1923,7 @@ static void test_Input_mouse(void)
}
ok(got_button_down, "expected WM_RBUTTONDOWN message\n");
ok(got_button_up, "expected WM_RBUTTONUP message\n");
DestroyWindow(hwnd);
/* click on child window after SetCapture call */
hwnd = CreateWindowA("button", "button2", WS_VISIBLE | WS_CHILD,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment