Commit a0d2b0297618b4e422deda5e247580747958405d

Ran Benita 2014-10-17T01:14:57

test/keyseq: test 'map[None] = Level2;' scenario See previous commit for an explanation. Signed-off-by: Ran Benita <ran234@gmail.com>

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;
 }