[gtk+] Add some more accelerator / modifier tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add some more accelerator / modifier tests
- Date: Sun, 17 Apr 2016 05:55:13 +0000 (UTC)
commit 4a9cf8527ed3c0826a195c65253612f23ba505a2
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 17 01:54:43 2016 -0400
Add some more accelerator / modifier tests
testsuite/gtk/accel.c | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/gtk/accel.c b/testsuite/gtk/accel.c
index d7ceb94..da031da 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;
@@ -99,6 +99,24 @@ accel5 (void)
}
static void
+accel6 (void)
+{
+ test_one_accel ("<Hyper>x", "Hyper+X", TRUE);
+}
+
+static void
+accel7 (void)
+{
+ test_one_accel ("<Super>x", "Super+X", TRUE);
+}
+
+static void
+accel8 (void)
+{
+ test_one_accel ("<Meta>x", "Meta+X", TRUE);
+}
+
+static void
keysyms (void)
{
g_assert (gdk_keyval_from_name ("KP_7") == GDK_KEY_KP_7);
@@ -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();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]