Alexandre Julliard : user32/tests: Ignore WM_IME_SELECT message. Skip mouse hovering test if the mouse isn't where we want.
Alexandre Julliard
julliard at winehq.org
Thu Jan 22 08:41:27 CST 2009
Module: wine
Branch: master
Commit: d3078e0bacbfac3360c993287675b9acc44ae619
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d3078e0bacbfac3360c993287675b9acc44ae619
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jan 22 13:11:38 2009 +0100
user32/tests: Ignore WM_IME_SELECT message. Skip mouse hovering test if the mouse isn't where we want.
---
dlls/user32/tests/msg.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index e8d5301..19c89ad 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -6871,6 +6871,7 @@ static LRESULT MsgCheckProc (BOOL unicode, HWND hwnd, UINT message,
case WM_GETICON:
case WM_GETOBJECT:
case WM_DEVICECHANGE:
+ case WM_IME_SELECT:
return 0;
}
@@ -9656,7 +9657,24 @@ static void test_TrackMouseEvent(void)
flush_sequence();
track_hover(hwnd, 0);
- track_query(TME_HOVER, hwnd, default_hover_time);
+ tme.cbSize = sizeof(tme);
+ tme.dwFlags = TME_QUERY;
+ tme.hwndTrack = (HWND)0xdeadbeef;
+ tme.dwHoverTime = 0xdeadbeef;
+ SetLastError(0xdeadbeef);
+ ret = pTrackMouseEvent(&tme);
+ ok(ret, "TrackMouseEvent(TME_QUERY) error %d\n", GetLastError());
+ ok(tme.cbSize == sizeof(tme), "wrong tme.cbSize %u\n", tme.cbSize);
+ if (!tme.dwFlags)
+ {
+ skip( "Cursor not inside window, skipping TrackMouseEvent tests\n" );
+ DestroyWindow( hwnd );
+ return;
+ }
+ ok(tme.dwFlags == TME_HOVER, "wrong tme.dwFlags %08x, expected TME_HOVER\n", tme.dwFlags);
+ ok(tme.hwndTrack == hwnd, "wrong tme.hwndTrack %p, expected %p\n", tme.hwndTrack, hwnd);
+ ok(tme.dwHoverTime == default_hover_time, "wrong tme.dwHoverTime %u, expected %u\n",
+ tme.dwHoverTime, default_hover_time);
pump_msg_loop_timeout(default_hover_time, FALSE);
ok_sequence(WmMouseHoverSeq, "WmMouseHoverSeq", FALSE);
More information about the wine-cvs
mailing list