[glib] Improve GSimpleActionGroup test coverage



commit 97a06b42527b3df1724c0bc61f654f651f3055e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 28 21:53:53 2013 -0500

    Improve GSimpleActionGroup test coverage
    
    Add a case that overwrites an existing action.

 gio/tests/actions.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/actions.c b/gio/tests/actions.c
index 0531b9c..2750a2d 100644
--- a/gio/tests/actions.c
+++ b/gio/tests/actions.c
@@ -246,6 +246,10 @@ test_simple_group (void)
   action = g_simple_action_group_lookup (group, "bar");
   g_assert (action == NULL);
 
+  simple = g_simple_action_new ("foo", NULL);
+  g_simple_action_group_insert (group, G_ACTION (simple));
+  g_object_unref (simple);
+
   a.did_run = FALSE;
   g_object_unref (group);
   g_assert (!a.did_run);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]