summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-17 01:14:57 +0300
committerRan Benita <ran234@gmail.com>2014-10-17 01:19:22 +0300
commita0d2b0297618b4e422deda5e247580747958405d (patch)
tree68ebd3e40a23afb119dbce37fdb724d49104ce9b
parent312182ce7d33a95b5f87549f4cd5908f916e2131 (diff)
downloadxorg-lib-libxkbcommon-a0d2b0297618b4e422deda5e247580747958405d.tar.gz
test/keyseq: test 'map[None] = Level2;' scenario
See previous commit for an explanation. Signed-off-by: Ran Benita <ran234@gmail.com>
-rw-r--r--test/keyseq.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/keyseq.c b/test/keyseq.c
index 40a08e9..05c7957 100644
--- a/test/keyseq.c
+++ b/test/keyseq.c
@@ -459,6 +459,26 @@ main(void)
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;
}