From 4a9cf8527ed3c0826a195c65253612f23ba505a2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 17 Apr 2016 01:54:43 -0400 Subject: [PATCH] Add some more accelerator / modifier tests --- testsuite/gtk/accel.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/testsuite/gtk/accel.c b/testsuite/gtk/accel.c index d7ceb94f0e..da031da7be 100644 --- a/testsuite/gtk/accel.c +++ b/testsuite/gtk/accel.c @@ -20,7 +20,7 @@ static void test_one_accel (const char *accel, const char *exp_label, - gboolean has_keysym) + gboolean has_keysym) { guint accel_key; GdkModifierType mods; @@ -98,6 +98,24 @@ accel5 (void) test_one_accel ("exclam", "Shift+!", TRUE); } +static void +accel6 (void) +{ + test_one_accel ("x", "Hyper+X", TRUE); +} + +static void +accel7 (void) +{ + test_one_accel ("x", "Super+X", TRUE); +} + +static void +accel8 (void) +{ + test_one_accel ("x", "Meta+X", TRUE); +} + static void keysyms (void) { @@ -119,5 +137,9 @@ main (int argc, g_test_add_func ("/accel3", accel3); g_test_add_func ("/accel4", accel4); g_test_add_func ("/accel5", accel5); + g_test_add_func ("/accel6", accel6); + g_test_add_func ("/accel7", accel7); + g_test_add_func ("/accel8", accel8); + return g_test_run(); }