Commit 24846080dbcdbf40e07618e0d3df4e686f9f5050

Ran Benita 2014-09-11T14:08:12

test/keyseq: add test Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/keyseq.c b/test/keyseq.c
index 71f235a..40a08e9 100644
--- a/test/keyseq.c
+++ b/test/keyseq.c
@@ -439,6 +439,16 @@ main(void)
                         KEY_H,         BOTH, XKB_KEY_h,                 FINISH));
 
     xkb_keymap_unref(keymap);
+    keymap = test_compile_rules(ctx, "evdev", "", "us", "euro", "");
+    assert(keymap);
+
+    assert(test_key_seq(keymap,
+                        KEY_5,         BOTH, XKB_KEY_5,                 NEXT,
+                        KEY_RIGHTALT,  DOWN, XKB_KEY_ISO_Level3_Shift,  NEXT,
+                        KEY_5,         BOTH, XKB_KEY_EuroSign,          NEXT,
+                        KEY_RIGHTALT,  UP,   XKB_KEY_ISO_Level3_Shift,  FINISH));
+
+    xkb_keymap_unref(keymap);
     keymap = test_compile_file(ctx, "keymaps/unbound-vmod.xkb");
     assert(keymap);