From b08bbcccad7fffc4b7c829f963c3130a34ed8ae9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 12 Jul 2009 01:43:41 +0100 Subject: [PATCH] [tests] Remove test-perspective The perspective test was used essentially to determine whether the perspective set up in COGL worked correctly. The perspective code has been changed a lot since Clutter 0.3: we rely on client-side matrices and we use floating point; so, all the conditions the test was supposed to verify do not exist anymore. --- tests/interactive/Makefile.am | 1 - tests/interactive/test-perspective.c | 51 ---------------------------- 2 files changed, 52 deletions(-) delete mode 100644 tests/interactive/test-perspective.c diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am index 32d6318e9..dd38df881 100644 --- a/tests/interactive/Makefile.am +++ b/tests/interactive/Makefile.am @@ -9,7 +9,6 @@ UNIT_TESTS = \ test-actor-clone.c \ test-behave.c \ test-project.c \ - test-perspective.c \ test-rotate.c \ test-depth.c \ test-threads.c \ diff --git a/tests/interactive/test-perspective.c b/tests/interactive/test-perspective.c deleted file mode 100644 index 159c5637a..000000000 --- a/tests/interactive/test-perspective.c +++ /dev/null @@ -1,51 +0,0 @@ -#include -#include - -G_MODULE_EXPORT int -test_perspective_main (int argc, char *argv[]) -{ - ClutterActor *rect; - ClutterActor *stage; - ClutterColor red = {0xff, 0, 0, 0xff}, white = {0xff, 0xff, 0xff, 0xff}; - - clutter_init (&argc, &argv); - - stage = clutter_stage_get_default (); - clutter_stage_set_color (CLUTTER_STAGE (stage), &red); - clutter_stage_set_fullscreen (CLUTTER_STAGE (stage), TRUE); - - rect = clutter_rectangle_new_with_color (&white); - clutter_actor_set_size (rect, - clutter_actor_get_width(stage), - clutter_actor_get_height(stage)); - clutter_actor_set_position (rect, 0, 0); - clutter_group_add (CLUTTER_GROUP (stage), rect); - - rect = clutter_rectangle_new_with_color (&red); - clutter_actor_set_size (rect, 2, 2); - clutter_actor_set_position (rect, 1, 1); - clutter_group_add (CLUTTER_GROUP (stage), rect); - - rect = clutter_rectangle_new_with_color (&red); - clutter_actor_set_size (rect, 2, 2); - clutter_actor_set_position (rect, clutter_actor_get_width(stage)-3, 1); - clutter_group_add (CLUTTER_GROUP (stage), rect); - - rect = clutter_rectangle_new_with_color (&red); - clutter_actor_set_size (rect, 2, 2); - clutter_actor_set_position (rect, 1, clutter_actor_get_height(stage)-3); - clutter_group_add (CLUTTER_GROUP (stage), rect); - - rect = clutter_rectangle_new_with_color (&red); - clutter_actor_set_size (rect, 2, 2); - clutter_actor_set_position (rect, - clutter_actor_get_width(stage)-3, - clutter_actor_get_height(stage)-3); - clutter_group_add (CLUTTER_GROUP (stage), rect); - - clutter_actor_show_all (CLUTTER_ACTOR (stage)); - - clutter_main (); - - return 0; -}