# animation tests
units_sources += \
- test-animator.c \
- test-behaviours.c \
- test-score.c \
- test-state.c \
- test-timeline.c \
- test-timeline-interpolate.c \
- test-timeline-rewind.c \
+ test-animator.c \
+ test-behaviours.c \
+ test-score.c \
+ test-state.c \
+ test-timeline.c \
+ test-timeline-interpolate.c \
+ test-timeline-rewind.c \
$(NULL)
# cogl tests
# actors tests
units_sources += \
- test-actor-graph.c \
- test-actor-destroy.c \
- test-actor-invariants.c \
- test-actor-iter.c \
- test-actor-layout.c \
- test-actor-size.c \
- test-anchors.c \
- test-binding-pool.c \
- test-clutter-cairo-texture.c \
- test-clutter-rectangle.c \
- test-clutter-text.c \
- test-clutter-texture.c \
- test-group.c \
- test-offscreen-redirect.c \
- test-path.c \
- test-paint-opacity.c \
- test-pick.c \
- test-texture-fbo.c \
- test-text-cache.c \
- test-shader-effect.c \
+ test-actor-graph.c \
+ test-actor-destroy.c \
+ test-actor-invariants.c \
+ test-actor-iter.c \
+ test-actor-layout.c \
+ test-actor-size.c \
+ test-anchors.c \
+ test-binding-pool.c \
+ test-cairo-texture.c \
+ test-group.c \
+ test-offscreen-redirect.c \
+ test-path.c \
+ test-paint-opacity.c \
+ test-pick.c \
+ test-shader-effect.c \
+ test-rectangle.c \
+ test-texture-fbo.c \
+ test-texture.c \
+ test-text-cache.c \
+ test-text.c \
$(NULL)
# objects tests
units_sources += \
- test-clutter-units.c \
- test-color.c \
- test-model.c \
- test-script-parser.c \
+ test-color.c \
+ test-model.c \
+ test-script-parser.c \
+ test-units.c \
$(NULL)
# cally tests
units_sources += \
- test-cally-text.c \
+ test-cally-text.c \
$(NULL)
test_conformance_SOURCES = $(common_sources) $(units_sources)
#include "test-conform-common.h"
void
-test_animator_multi_properties (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+animator_multi_properties (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
GObject *animator = NULL, *foo = NULL;
}
void
-test_animator_properties (TestConformSimpleFixture *fixture,
+animator_properties (TestConformSimpleFixture *fixture,
gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
}
void
-test_animator_base (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+animator_base (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
GObject *animator = NULL;
static const gint n_behaviour_tests = G_N_ELEMENTS (behaviour_tests);
void
-test_behaviours (TestConformSimpleFixture *fixture,
+behaviours_base (TestConformSimpleFixture *fixture,
gconstpointer dummy)
{
BehaviourFixture b_fixture;
}
void
-test_binding_pool (TestConformSimpleFixture *fixture,
- gconstpointer data)
+binding_pool (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
KeyGroup *key_group = g_object_new (TYPE_KEY_GROUP, NULL);
}
void
-test_clutter_cairo_texture (TestConformSimpleFixture *fixture,
- gconstpointer data)
+texture_cairo (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
TestState state;
unsigned int idle_source;
#include "test-conform-common.h"
void
-test_color_hls_roundtrip (TestConformSimpleFixture *fixture,
- gconstpointer data)
+color_hls_roundtrip (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterColor color;
gfloat hue, luminance, saturation;
}
void
-test_color_from_string_invalid (TestConformSimpleFixture *fixture,
- gconstpointer data)
+color_from_string_invalid (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterColor color;
}
void
-test_color_from_string_valid (TestConformSimpleFixture *fixture,
- gconstpointer data)
+color_from_string_valid (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterColor color;
}
void
-test_color_to_string (TestConformSimpleFixture *fixture,
- gconstpointer data)
+color_to_string (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterColor color;
gchar *str;
}
void
-test_color_operators (TestConformSimpleFixture *fixture,
- gconstpointer data)
+color_operators (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterColor op1, op2;
ClutterColor res;
/* this is a macro that conditionally executes a test if CONDITION
* evaluates to TRUE; otherwise, it will put the test under the
- * "/skip" namespace and execute a dummy function that will always
+ * "/skipped" namespace and execute a dummy function that will always
* pass.
*/
#define TEST_CONFORM_SKIP(CONDITION, NAMESPACE, FUNC) G_STMT_START { \
- if (CONDITION) { \
+ if (CONDITION) { TEST_CONFORM_SIMPLE (NAMESPACE, FUNC); } \
+ else { \
g_test_add ("/skipped" NAMESPACE "/" #FUNC, \
TestConformSimpleFixture, \
shared_state, /* data argument for test */ \
test_conform_simple_fixture_setup, \
test_conform_skip_test, \
test_conform_simple_fixture_teardown); \
- } else { TEST_CONFORM_SIMPLE (NAMESPACE, FUNC); } } G_STMT_END
+ } } G_STMT_END
#define TEST_CONFORM_TODO(NAMESPACE, FUNC) G_STMT_START { \
extern void FUNC (TestConformSimpleFixture *, gconstpointer); \
g_test_init (argc, argv, NULL);
- g_test_bug_base ("http://bugzilla.openedhand.com/show_bug.cgi?id=%s");
+ g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
/* Initialise the state you need to share with everything.
*/
TEST_CONFORM_SIMPLE ("/actor/invariants", actor_contains);
TEST_CONFORM_SIMPLE ("/actor/invariants", default_stage);
- TEST_CONFORM_SIMPLE ("/actor/opacity", test_label_opacity);
- TEST_CONFORM_SIMPLE ("/actor/opacity", test_rectangle_opacity);
- TEST_CONFORM_SIMPLE ("/actor/opacity", test_paint_opacity);
+ TEST_CONFORM_SIMPLE ("/actor/opacity", opacity_label);
+ TEST_CONFORM_SIMPLE ("/actor/opacity", opacity_rectangle);
+ TEST_CONFORM_SIMPLE ("/actor/opacity", opacity_paint);
TEST_CONFORM_SIMPLE ("/text", text_utf8_validation);
TEST_CONFORM_SIMPLE ("/text", text_set_empty);
TEST_CONFORM_SIMPLE ("/text", text_get_chars);
TEST_CONFORM_SIMPLE ("/text", text_cache);
TEST_CONFORM_SIMPLE ("/text", text_password_char);
- TEST_CONFORM_SIMPLE ("/text", idempotent_use_markup);
+ TEST_CONFORM_SIMPLE ("/text", text_idempotent_use_markup);
- TEST_CONFORM_SIMPLE ("/rectangle", test_rect_set_size);
- TEST_CONFORM_SIMPLE ("/rectangle", test_rect_set_color);
+ TEST_CONFORM_SIMPLE ("/rectangle", rectangle_set_size);
+ TEST_CONFORM_SIMPLE ("/rectangle", rectangle_set_color);
- TEST_CONFORM_SIMPLE ("/texture", test_texture_pick_with_alpha);
- TEST_CONFORM_SIMPLE ("/texture", test_texture_fbo);
- TEST_CONFORM_SIMPLE ("/texture/cairo", test_clutter_cairo_texture);
+ TEST_CONFORM_SIMPLE ("/texture", texture_pick_with_alpha);
+ TEST_CONFORM_SIMPLE ("/texture", texture_fbo);
+ TEST_CONFORM_SIMPLE ("/texture/cairo", texture_cairo);
TEST_CONFORM_SIMPLE ("/path", test_path);
- TEST_CONFORM_SIMPLE ("/binding-pool", test_binding_pool);
-
- TEST_CONFORM_SIMPLE ("/model", test_list_model_populate);
- TEST_CONFORM_SIMPLE ("/model", test_list_model_iterate);
- TEST_CONFORM_SIMPLE ("/model", test_list_model_filter);
- TEST_CONFORM_SIMPLE ("/model", test_list_model_from_script);
- TEST_CONFORM_SIMPLE ("/model", test_list_model_row_changed);
-
- TEST_CONFORM_SIMPLE ("/color", test_color_from_string_valid);
- TEST_CONFORM_SIMPLE ("/color", test_color_from_string_invalid);
- TEST_CONFORM_SIMPLE ("/color", test_color_to_string);
- TEST_CONFORM_SIMPLE ("/color", test_color_hls_roundtrip);
- TEST_CONFORM_SIMPLE ("/color", test_color_operators);
-
- TEST_CONFORM_SIMPLE ("/units", test_units_constructors);
- TEST_CONFORM_SIMPLE ("/units", test_units_string);
- TEST_CONFORM_SIMPLE ("/units", test_units_cache);
-
- TEST_CONFORM_SIMPLE ("/group", test_group_depth_sorting);
-
- TEST_CONFORM_SIMPLE ("/script", test_script_single);
- TEST_CONFORM_SIMPLE ("/script", test_script_child);
- TEST_CONFORM_SIMPLE ("/script", test_script_implicit_alpha);
- TEST_CONFORM_SIMPLE ("/script", test_script_object_property);
- TEST_CONFORM_SIMPLE ("/script", test_script_animation);
- TEST_CONFORM_SIMPLE ("/script", test_script_named_object);
- TEST_CONFORM_SIMPLE ("/script", test_animator_base);
- TEST_CONFORM_SIMPLE ("/script", test_animator_properties);
- TEST_CONFORM_SIMPLE ("/script", test_animator_multi_properties);
- TEST_CONFORM_SIMPLE ("/script", test_state_base);
- TEST_CONFORM_SIMPLE ("/script", test_script_layout_property);
-
- TEST_CONFORM_SIMPLE ("/timeline", test_timeline);
- TEST_CONFORM_SIMPLE ("/timeline", markers_from_script);
- TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", timeline_interpolation);
- TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", timeline_rewind);
-
- TEST_CONFORM_SIMPLE ("/score", test_score);
-
- TEST_CONFORM_SIMPLE ("/behaviours", test_behaviours);
+ TEST_CONFORM_SIMPLE ("/binding-pool", binding_pool);
+
+ TEST_CONFORM_SIMPLE ("/model", list_model_populate);
+ TEST_CONFORM_SIMPLE ("/model", list_model_iterate);
+ TEST_CONFORM_SIMPLE ("/model", list_model_filter);
+ TEST_CONFORM_SIMPLE ("/model", list_model_from_script);
+ TEST_CONFORM_SIMPLE ("/model", list_model_row_changed);
+
+ TEST_CONFORM_SIMPLE ("/color", color_from_string_valid);
+ TEST_CONFORM_SIMPLE ("/color", color_from_string_invalid);
+ TEST_CONFORM_SIMPLE ("/color", color_to_string);
+ TEST_CONFORM_SIMPLE ("/color", color_hls_roundtrip);
+ TEST_CONFORM_SIMPLE ("/color", color_operators);
+
+ TEST_CONFORM_SIMPLE ("/units", units_constructors);
+ TEST_CONFORM_SIMPLE ("/units", units_string);
+ TEST_CONFORM_SIMPLE ("/units", units_cache);
+
+ TEST_CONFORM_SIMPLE ("/group", group_depth_sorting);
+
+ TEST_CONFORM_SIMPLE ("/script", script_single);
+ TEST_CONFORM_SIMPLE ("/script", script_child);
+ TEST_CONFORM_SIMPLE ("/script", script_implicit_alpha);
+ TEST_CONFORM_SIMPLE ("/script", script_object_property);
+ TEST_CONFORM_SIMPLE ("/script", script_animation);
+ TEST_CONFORM_SIMPLE ("/script", script_named_object);
+ TEST_CONFORM_SIMPLE ("/script", script_layout_property);
+ TEST_CONFORM_SIMPLE ("/script", animator_base);
+ TEST_CONFORM_SIMPLE ("/script", animator_properties);
+ TEST_CONFORM_SIMPLE ("/script", animator_multi_properties);
+ TEST_CONFORM_SIMPLE ("/script", state_base);
+
+ TEST_CONFORM_SIMPLE ("/timeline", timeline_base);
+ TEST_CONFORM_SIMPLE ("/timeline", timeline_markers_from_script);
+ TEST_CONFORM_SKIP (g_test_slow (), "/timeline", timeline_interpolation);
+ TEST_CONFORM_SKIP (g_test_slow (), "/timeline", timeline_rewind);
+
+ TEST_CONFORM_SIMPLE ("/score", score_base);
+
+ TEST_CONFORM_SIMPLE ("/behaviours", behaviours_base);
/* FIXME - see bug https://bugzilla.gnome.org/show_bug.cgi?id=655588 */
TEST_CONFORM_TODO ("/cally", cally_text);
#include "test-conform-common.h"
void
-test_group_depth_sorting (TestConformSimpleFixture *fixture,
- gconstpointer data)
+group_depth_sorting (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterActor *group;
ClutterActor *child, *test;
}
void
-test_list_model_filter (TestConformSimpleFixture *fixture,
- gconstpointer data)
+list_model_filter (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ModelData test_data = { NULL, 0 };
ClutterModelIter *iter;
}
void
-test_list_model_iterate (TestConformSimpleFixture *fixture,
- gconstpointer data)
+list_model_iterate (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ModelData test_data = { NULL, 0 };
ClutterModelIter *iter;
}
void
-test_list_model_populate (TestConformSimpleFixture *fixture,
- gconstpointer data)
+list_model_populate (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ModelData test_data = { NULL, 0 };
gint i;
}
void
-test_list_model_from_script (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+list_model_from_script (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
GObject *model;
if (g_test_verbose () && error)
g_print ("Error: %s", error->message);
-#if GLIB_CHECK_VERSION (2, 20, 0)
g_assert_no_error (error);
-#else
- g_assert (error == NULL);
-#endif /* GLIB_CHECK_VERSION (2, 20, 0) */
model = clutter_script_get_object (script, "test-model");
}
void
-test_list_model_row_changed (TestConformSimpleFixture *fixture,
- gconstpointer data)
+list_model_row_changed (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ChangedData test_data = { NULL, NULL, 0, 0 };
GValue value = { 0, };
#include "test-conform-common.h"
void
-test_label_opacity (TestConformSimpleFixture *fixture,
- gpointer dummy)
+opacity_label (TestConformSimpleFixture *fixture,
+ gpointer dummy)
{
ClutterActor *stage;
ClutterActor *label;
}
void
-test_rectangle_opacity (TestConformSimpleFixture *fixture,
- gpointer dummy)
+opacity_rectangle (TestConformSimpleFixture *fixture,
+ gpointer dummy)
{
ClutterActor *stage;
ClutterActor *rect;
}
void
-test_paint_opacity (TestConformSimpleFixture *fixture,
- gpointer dummy)
+opacity_paint (TestConformSimpleFixture *fixture,
+ gpointer dummy)
{
ClutterActor *stage, *group1, *group2;
ClutterActor *label, *rect;
#include "test-conform-common.h"
void
-test_rect_set_size (TestConformSimpleFixture *fixture,
+rectangle_set_size (TestConformSimpleFixture *fixture,
gconstpointer data)
{
ClutterActor *rect = clutter_rectangle_new ();
}
void
-test_rect_set_color (TestConformSimpleFixture *fixture,
+rectangle_set_color (TestConformSimpleFixture *fixture,
gconstpointer data)
{
ClutterActor *rect = clutter_rectangle_new ();
}
void
-test_score (TestConformSimpleFixture *fixture,
+score_base (TestConformSimpleFixture *fixture,
gconstpointer data)
{
ClutterScore *score;
}
void
-test_script_child (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+script_child (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
GObject *container, *actor;
}
void
-test_script_single (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+script_single (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
ClutterColor color = { 0, };
}
void
-test_script_implicit_alpha (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+script_implicit_alpha (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
ClutterTimeline *timeline;
}
void
-test_script_object_property (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+script_object_property (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
ClutterLayoutManager *manager;
}
void
-test_script_named_object (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+script_named_object (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
ClutterLayoutManager *manager;
}
void
-test_script_animation (TestConformSimpleFixture *fixture,
- gconstpointer dummy)
+script_animation (TestConformSimpleFixture *fixture,
+ gconstpointer dummy)
{
ClutterScript *script = clutter_script_new ();
GObject *animation = NULL;
}
void
-test_script_layout_property (TestConformSimpleFixture *fixture,
- gconstpointer dummy G_GNUC_UNUSED)
+script_layout_property (TestConformSimpleFixture *fixture,
+ gconstpointer dummy G_GNUC_UNUSED)
{
ClutterScript *script = clutter_script_new ();
GObject *manager, *container, *actor1, *actor2;
#include "test-conform-common.h"
void
-test_state_base (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
- gconstpointer dummy G_GNUC_UNUSED)
+state_base (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
+ gconstpointer dummy G_GNUC_UNUSED)
{
ClutterScript *script = clutter_script_new ();
GObject *state = NULL;
}
void
-idempotent_use_markup (void)
+text_idempotent_use_markup (void)
{
ClutterText *text;
const char *contents = "foo <b>bar</b>";
}
void
-test_texture_fbo (TestConformSimpleFixture *fixture,
- gconstpointer data)
+texture_fbo (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
TestState state;
ClutterActor *actor;
}
void
-test_texture_pick_with_alpha (TestConformSimpleFixture *fixture,
- gconstpointer data)
+texture_pick_with_alpha (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterTexture *tex = CLUTTER_TEXTURE (clutter_texture_new ());
ClutterStage *stage = CLUTTER_STAGE (clutter_stage_new ());
}
void
-test_timeline (TestConformSimpleFixture *fixture,
+timeline_base (TestConformSimpleFixture *fixture,
gconstpointer data)
{
ClutterTimeline *timeline_1;
}
void
-markers_from_script (TestConformSimpleFixture *fixture,
- gconstpointer data)
+timeline_markers_from_script (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterScript *script = clutter_script_new ();
ClutterTimeline *timeline;
#include "test-conform-common.h"
void
-test_units_cache (TestConformSimpleFixture *fixture,
- gconstpointer data)
+units_cache (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterUnits units;
ClutterSettings *settings;
}
void
-test_units_constructors (TestConformSimpleFixture *fixture,
- gconstpointer data)
+units_constructors (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterUnits units, units_cm;
}
void
-test_units_string (TestConformSimpleFixture *fixture,
- gconstpointer data)
+units_string (TestConformSimpleFixture *fixture,
+ gconstpointer data)
{
ClutterUnits units;
gchar *string;