Do not use wildcards in test-state
Use named states, like in a real case.
This commit is contained in:
parent
6ca425679e
commit
9fcbb274e0
@ -36,13 +36,13 @@ test_state_base (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
|
|||||||
g_assert (g_list_find (states, g_intern_static_string ("clicked")));
|
g_assert (g_list_find (states, g_intern_static_string ("clicked")));
|
||||||
g_list_free (states);
|
g_list_free (states);
|
||||||
|
|
||||||
duration = clutter_state_get_duration (CLUTTER_STATE (state), "*", "clicked");
|
duration = clutter_state_get_duration (CLUTTER_STATE (state), "base", "clicked");
|
||||||
g_assert_cmpint (duration, ==, 250);
|
g_assert_cmpint (duration, ==, 250);
|
||||||
|
|
||||||
duration = clutter_state_get_duration (CLUTTER_STATE (state), "clicked", "*");
|
duration = clutter_state_get_duration (CLUTTER_STATE (state), "clicked", "base");
|
||||||
g_assert_cmpint (duration, ==, 150);
|
g_assert_cmpint (duration, ==, 150);
|
||||||
|
|
||||||
keys = clutter_state_get_keys (CLUTTER_STATE (state), "*", "clicked",
|
keys = clutter_state_get_keys (CLUTTER_STATE (state), "base", "clicked",
|
||||||
clutter_script_get_object (script, "rect"),
|
clutter_script_get_object (script, "rect"),
|
||||||
"opacity");
|
"opacity");
|
||||||
g_assert (keys != NULL);
|
g_assert (keys != NULL);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
"transitions" : [
|
"transitions" : [
|
||||||
{
|
{
|
||||||
"source" : "*",
|
"source" : "base",
|
||||||
"target" : "clicked",
|
"target" : "clicked",
|
||||||
"duration" : 250,
|
"duration" : 250,
|
||||||
|
|
||||||
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source" : "clicked",
|
"source" : "clicked",
|
||||||
"target" : "*",
|
"target" : "base",
|
||||||
"duration" : 150,
|
"duration" : 150,
|
||||||
|
|
||||||
"keys" : [
|
"keys" : [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user