diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-06-22 15:29:47 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-06-22 15:30:17 +0100 |
commit | 6d606d1068197453db40d78dc44e7bbe816f0623 (patch) | |
tree | 6c302e7b7fd8ac50234066582b1c029544f12cc0 /test | |
parent | 8e2c66e9ea2f0c1302b943fe63212614b1a46e60 (diff) |
state: Add more comprehensive repeating test
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/state.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/state.c b/test/state.c index d32a1ea..b0974ef 100644 --- a/test/state.c +++ b/test/state.c @@ -230,13 +230,11 @@ test_serialisation(struct xkb_keymap *keymap) static void test_repeat(struct xkb_keymap *keymap) { - xkb_keycode_t key; - fprintf(stderr, "%s\n", xkb_map_get_as_string(keymap)); - for (key = keymap->min_key_code; key < keymap->max_key_code; key++) - if (xkb_key_repeats(keymap, key)) - fprintf(stderr, "%d repeats!\n", key); assert(!xkb_key_repeats(keymap, KEY_LEFTSHIFT + 8)); assert(xkb_key_repeats(keymap, KEY_A + 8)); + assert(xkb_key_repeats(keymap, KEY_8 + 8)); + assert(xkb_key_repeats(keymap, KEY_DOWN + 8)); + assert(xkb_key_repeats(keymap, KEY_KBDILLUMDOWN + 8)); } int |