From 5cb4e0c5d002809afbce93f477ba968979f0c5be Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 6 Jul 2010 14:26:07 +0100 Subject: [PATCH] test-state: fix test for state count after state removal In the .json file used for the test, there is no null -> "base" transition defined only a "clicked" -> "base", when the "clicked" state is removed the "base" state will also disappear. --- tests/conform/test-state.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/conform/test-state.c b/tests/conform/test-state.c index 2145be0..934219c 100644 --- a/tests/conform/test-state.c +++ b/tests/conform/test-state.c @@ -79,7 +79,11 @@ test_state_base (TestConformSimpleFixture *fixture G_GNUC_UNUSED, clutter_state_remove_key (CLUTTER_STATE (state), NULL, "clicked", NULL, NULL); states = clutter_state_get_states (CLUTTER_STATE (state)); - g_assert_cmpint (g_list_length (states), ==, 1); + + /* removing the "clicked" state, will also cause the "base" state to be removed + * since in the .json there is no default source state + */ + g_assert_cmpint (g_list_length (states), ==, 0); g_list_free (states); g_object_unref (script); -- 2.7.4