projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38afb17
)
Improve GSimpleActionGroup test coverage
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 29 Nov 2013 02:53:53 +0000
(21:53 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 29 Nov 2013 02:53:53 +0000
(21:53 -0500)
Add a case that overwrites an existing action.
gio/tests/actions.c
patch
|
blob
|
history
diff --git
a/gio/tests/actions.c
b/gio/tests/actions.c
index 0531b9c9ed76749f6b667cf2c9d672f9cb8978b7..2750a2d514820d356c6b72607a3d0d980c12343f 100644
(file)
--- 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);