[glib] Improve GApplication test coverage
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Improve GApplication test coverage
- Date: Fri, 29 Nov 2013 02:59:16 +0000 (UTC)
commit 2cafe37e19561ee1c10960d191dc776d70c19c7f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 28 21:57:47 2013 -0500
Improve GApplication test coverage
Exercise more of the GActionMap implementation.
gio/tests/gapplication.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gapplication.c b/gio/tests/gapplication.c
index b6f911e..d970f75 100644
--- a/gio/tests/gapplication.c
+++ b/gio/tests/gapplication.c
@@ -428,6 +428,9 @@ on_activate (GApplication *app)
state = g_action_group_get_action_state (G_ACTION_GROUP (app), "test");
g_assert (g_variant_get_boolean (state) == TRUE);
+ action = g_action_map_lookup_action (G_ACTION_MAP (app), "test");
+ g_assert (action != NULL);
+
g_action_map_remove_action (G_ACTION_MAP (app), "test");
actions = g_action_group_list_actions (G_ACTION_GROUP (app));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]