From: Alexandros Frantzis alexandros.frantzis@collabora.com
--- dlls/user32/tests/input.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index 527ee6d8785..9dbaab2ddf4 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -1169,6 +1169,7 @@ static void test_SendInput_keyboard_messages( WORD vkey, WORD scan, WCHAR wch, W HHOOK hook; HWND hwnd;
+ trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); /* on 32-bit with ALTGR keyboard, the CONTROL key is sent to the hooks without the * LLKHF_INJECTED flag, skip the tests to keep it simple */ if (altgr && sizeof(void *) == 4 && !is_wow64) skip_altgr = TRUE; @@ -1193,38 +1194,64 @@ static void test_SendInput_keyboard_messages( WORD vkey, WORD scan, WCHAR wch, W
/* test peeked messages */ winetest_push_context( "peek" ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lmenu_vkey_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lcontrol_vkey, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lmenu_lcontrol_vkey, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( shift_vkey, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( rshift, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lshift_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( rshift_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( shift, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( shift_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( rcontrol, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lcontrol_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( rcontrol_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( control, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( control_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); if (skip_altgr) skip( "skipping rmenu_altgr test\n" ); else if (altgr) check_send_input_keyboard_test( rmenu_altgr, TRUE ); else check_send_input_keyboard_test( rmenu_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lmenu_ext_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); if (skip_altgr) skip( "skipping rmenu_ext_altgr test\n" ); else if (altgr) check_send_input_keyboard_test( rmenu_ext_altgr, TRUE ); else check_send_input_keyboard_test( rmenu_ext_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( menu_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); if (skip_altgr) skip( "skipping menu_ext_altgr test\n" ); else if (altgr) check_send_input_keyboard_test( menu_ext_altgr, TRUE ); else check_send_input_keyboard_test( menu_ext_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lrshift_ext, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( rshift_scan, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); /* TODO: The Win10 Japanese testbot setup is misbehaving, skip for now. */ if (LOWORD(hkl) != 0x0411) check_send_input_keyboard_test( rctrl_scan, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( unicode, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( lmenu_unicode_peeked, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); check_send_input_keyboard_test( unicode_vkey, TRUE ); + trace( "hkl=%p\n", GetKeyboardLayout( 0 ) ); winetest_pop_context();
wait_messages( 100, FALSE );