~ubuntu-branches/ubuntu/vivid/clutter-1.0/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/conform/actor-meta.c

  • Committer: Package Import Robot
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2014-03-26 11:51:28 UTC
  • mfrom: (1.5.1) (4.1.30 experimental)
  • Revision ID: package-import@ubuntu.com-20140326115128-timmbsde8734o6wz
Tags: 1.18.0-1
* New upstream release.
* debian/control.in:
  + Bump gtk-doc-tools build dependency.
  + Also break libcogl15.
  + Standards-Version is 3.9.5, no changes needed.
* debian/libclutter-1.0-0.symbols:
  + Drop a few symbols that were accidentally exported in the DSO because
    they had a clutter_ prefix but were not in the public headers.
  + Add one new symbol.
  + Drop unnecessary debian revisions from some symbols.
* debian/control.in,
  debian/rules,
  debian/libclutter-1.0-0.symbols:
  + Temporarily disable evdev input support. It was only enabled in 1.17.6-1
    in experimental and there is nothing using it yet, and I would like to
    wait a bit before uploading libinput to unstable as the ABI isn't stable
    yet.
* d/p/0001-wayland-Add-missing-CLUTTER_AVAILABLE-annotations.patch:
  + Add missing annotations so that a few symbols are exported in the DSO.

* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdlib.h>
 
2
#include <string.h>
 
3
 
 
4
#include <clutter/clutter.h>
 
5
 
 
6
static void
 
7
actor_meta_clear (void)
 
8
{
 
9
  ClutterActor *actor, *stage;
 
10
 
 
11
  stage = clutter_test_get_stage ();
 
12
 
 
13
  actor = clutter_actor_new ();
 
14
  g_object_ref_sink (actor);
 
15
  g_object_add_weak_pointer (G_OBJECT (actor), (gpointer *) &actor);
 
16
 
 
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 ());
 
20
 
 
21
  g_assert (clutter_actor_has_actions (actor));
 
22
  g_assert (clutter_actor_has_constraints (actor));
 
23
  g_assert (clutter_actor_has_effects (actor));
 
24
 
 
25
  clutter_actor_clear_actions (actor);
 
26
  g_assert (!clutter_actor_has_actions (actor));
 
27
 
 
28
  clutter_actor_clear_constraints (actor);
 
29
  g_assert (!clutter_actor_has_constraints (actor));
 
30
 
 
31
  clutter_actor_clear_effects (actor);
 
32
  g_assert (!clutter_actor_has_effects (actor));
 
33
 
 
34
  clutter_actor_destroy (actor);
 
35
  g_assert (actor == NULL);
 
36
}
 
37
 
 
38
CLUTTER_TEST_SUITE (
 
39
  CLUTTER_TEST_UNIT ("/actor/meta/clear", actor_meta_clear)
 
40
)