From 444f4a7fbcbaa329eed647b675bb9574dcee92c8 Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Mon, 12 Jan 2009 18:03:14 +0100 Subject: [PATCH] user32/tests: keybd_event can send HCBT_KEYSKIPPED notifications. --- dlls/user32/tests/msg.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 834b687d3e9..febace8d02e 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -8743,11 +8743,22 @@ static const struct message WmKeyDownSkippedSeq[] = { HCBT_KEYSKIPPED, hook|wparam|lparam|optional, 'N', 1 }, /* XP */ { 0 } }; +static const struct message WmKeyDownWasDownSkippedSeq[] = +{ + { HCBT_KEYSKIPPED, hook|wparam|lparam|optional, 'N', 0x40000001 }, /* XP */ + { 0 } +}; static const struct message WmKeyUpSkippedSeq[] = { { HCBT_KEYSKIPPED, hook|wparam|lparam|optional, 'N', 0xc0000001 }, /* XP */ { 0 } }; +static const struct message WmUserKeyUpSkippedSeq[] = +{ + { WM_USER, sent }, + { HCBT_KEYSKIPPED, hook|wparam|lparam|optional, 'N', 0xc0000001 }, /* XP */ + { 0 } +}; #define EV_STOP 0 #define EV_SENDMSG 1 @@ -9162,6 +9173,7 @@ todo_wine { ok(ret && msg.message == WM_KEYDOWN && msg.wParam == 'N', "got %d and %04x wParam %08lx instead of TRUE and WM_KEYDOWN wParam 'N'\n", ret, msg.message, msg.wParam); + ok_sequence(WmKeyDownSkippedSeq, "WmKeyDownSkippedSeq", FALSE); qstatus = GetQueueStatus(qs_all_input); ok(qstatus == 0, "wrong qstatus %08x\n", qstatus); } @@ -9180,6 +9192,7 @@ todo_wine { ok(ret && msg.message == WM_KEYDOWN && msg.wParam == 'N', "got %d and %04x wParam %08lx instead of TRUE and WM_KEYDOWN wParam 'N'\n", ret, msg.message, msg.wParam); + ok_sequence(WmKeyDownWasDownSkippedSeq, "WmKeyDownWasDownSkippedSeq", FALSE); qstatus = GetQueueStatus(qs_all_input); ok(qstatus == MAKELONG(0, QS_POSTMESSAGE), "wrong qstatus %08x\n", qstatus); } @@ -9215,7 +9228,7 @@ todo_wine { ok(ret && msg.message == WM_KEYUP && msg.wParam == 'N', "got %d and %04x wParam %08lx instead of TRUE and WM_KEYDOWN wParam 'N'\n", ret, msg.message, msg.wParam); - ok_sequence(WmUser, "WmUser", FALSE); + ok_sequence(WmUserKeyUpSkippedSeq, "WmUserKeyUpSkippedSeq", FALSE); qstatus = GetQueueStatus(qs_all_input); ok(qstatus == MAKELONG(0, QS_POSTMESSAGE), "wrong qstatus %08x\n", qstatus); }