From 92e439105697fe65d8c6dda08d1658774245e9cb Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 14 May 2009 12:05:57 +0100 Subject: [PATCH] [tests] Verify cursor position Print out the cursor and selection positions in order to verify the behaviour of the Text actor. This is a likely candidate for a conformance test unit as well. --- tests/interactive/test-text-field.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/interactive/test-text-field.c b/tests/interactive/test-text-field.c index 260fc5fca..fbb51de68 100644 --- a/tests/interactive/test-text-field.c +++ b/tests/interactive/test-text-field.c @@ -28,7 +28,10 @@ static void on_entry_activate (ClutterText *text, gpointer data) { - g_print ("Text activated: %s\n", clutter_text_get_text (text)); + g_print ("Text activated: %s (cursor: %d, selection at: %d)\n", + clutter_text_get_text (text), + clutter_text_get_cursor_position (text), + clutter_text_get_selection_bound (text)); } static ClutterActor *