test/keyseq: add test

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-09-11 14:08:12 +03:00
parent 64fec8f31a
commit 24846080db
1 changed files with 10 additions and 0 deletions

View File

@ -438,6 +438,16 @@ main(void)
KEY_RIGHTALT, UP, XKB_KEY_ISO_Level3_Shift, NEXT,
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);