Piotr Caban : user32/tests: Don' t send mouse clicks to other process windows in input tests.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 26 11:13:56 CDT 2015
Module: wine
Branch: master
Commit: dfd2506736b13cf677f4dcfd9de8c6d01deebc96
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfd2506736b13cf677f4dcfd9de8c6d01deebc96
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Mar 25 16:54:43 2015 +0100
user32/tests: Don't send mouse clicks to other process windows in input tests.
---
dlls/user32/tests/input.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 76d0821..a523f0a 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -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,
More information about the wine-cvs
mailing list