4
#include <clutter/clutter.h>
7
actor_meta_clear (void)
9
ClutterActor *actor, *stage;
11
stage = clutter_test_get_stage ();
13
actor = clutter_actor_new ();
14
g_object_ref_sink (actor);
15
g_object_add_weak_pointer (G_OBJECT (actor), (gpointer *) &actor);
17
clutter_actor_add_action (actor, clutter_click_action_new ());
18
clutter_actor_add_constraint (actor, clutter_bind_constraint_new (stage, CLUTTER_BIND_ALL, 0));
19
clutter_actor_add_effect (actor, clutter_blur_effect_new ());
21
g_assert (clutter_actor_has_actions (actor));
22
g_assert (clutter_actor_has_constraints (actor));
23
g_assert (clutter_actor_has_effects (actor));
25
clutter_actor_clear_actions (actor);
26
g_assert (!clutter_actor_has_actions (actor));
28
clutter_actor_clear_constraints (actor);
29
g_assert (!clutter_actor_has_constraints (actor));
31
clutter_actor_clear_effects (actor);
32
g_assert (!clutter_actor_has_effects (actor));
34
clutter_actor_destroy (actor);
35
g_assert (actor == NULL);
39
CLUTTER_TEST_UNIT ("/actor/meta/clear", actor_meta_clear)