test/keyseq: test 'map[None] = Level2;' scenario

See previous commit for an explanation.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-10-17 01:14:57 +03:00
parent 312182ce7d
commit a0d2b02976
1 changed files with 20 additions and 0 deletions

View File

@ -458,6 +458,26 @@ main(void)
KEY_MINUS, BOTH, XKB_KEY_ssharp, NEXT,
KEY_Z, BOTH, XKB_KEY_y, FINISH));
xkb_keymap_unref(keymap);
keymap = test_compile_rules(ctx, "evdev", "applealu_ansi", "us", "",
"terminate:ctrl_alt_bksp");
assert(keymap);
assert(test_key_seq(keymap,
KEY_5, BOTH, XKB_KEY_5, NEXT,
KEY_KP1, BOTH, XKB_KEY_KP_1, NEXT,
KEY_NUMLOCK, BOTH, XKB_KEY_Clear, NEXT,
KEY_LEFTSHIFT, DOWN, XKB_KEY_Shift_L, NEXT,
KEY_KP1, BOTH, XKB_KEY_KP_1, NEXT,
KEY_LEFTSHIFT, UP, XKB_KEY_Shift_L, NEXT,
KEY_CAPSLOCK, BOTH, XKB_KEY_Caps_Lock, NEXT,
KEY_KP1, BOTH, XKB_KEY_KP_1, NEXT,
KEY_LEFTSHIFT, DOWN, XKB_KEY_Shift_L, NEXT,
KEY_KP1, BOTH, XKB_KEY_KP_1, NEXT,
KEY_LEFTSHIFT, UP, XKB_KEY_Shift_L, NEXT,
KEY_CAPSLOCK, BOTH, XKB_KEY_Caps_Lock, NEXT,
KEY_A, BOTH, XKB_KEY_a, FINISH));
xkb_keymap_unref(keymap);
xkb_context_unref(ctx);
return 0;