mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Improve GSimpleActionGroup test coverage
Add a case that overwrites an existing action.
This commit is contained in:
parent
38afb17598
commit
97a06b4252
@ -246,6 +246,10 @@ test_simple_group (void)
|
|||||||
action = g_simple_action_group_lookup (group, "bar");
|
action = g_simple_action_group_lookup (group, "bar");
|
||||||
g_assert (action == NULL);
|
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;
|
a.did_run = FALSE;
|
||||||
g_object_unref (group);
|
g_object_unref (group);
|
||||||
g_assert (!a.did_run);
|
g_assert (!a.did_run);
|
||||||
|
Loading…
Reference in New Issue
Block a user