From c2324849fc4aa7d15abdc343f2c5afc3d7f6b4c9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 24 Jan 2014 18:49:00 +0000 Subject: [PATCH] conform/text: Add verbose output --- tests/conform/text.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/conform/text.c b/tests/conform/text.c index cd61f0b71..30101ce34 100644 --- a/tests/conform/text.c +++ b/tests/conform/text.c @@ -212,14 +212,25 @@ text_delete_chars (void) for (j = 0; j < 4; j++) clutter_text_insert_unichar (text, t->unichar); + if (g_test_verbose ()) + g_print ("text: %s\n", clutter_text_get_text (text)); + clutter_text_set_cursor_position (text, 2); clutter_text_delete_chars (text, 1); + if (g_test_verbose ()) + g_print ("text: %s (cursor at: %d)\n", + clutter_text_get_text (text), + clutter_text_get_cursor_position (text)); g_assert_cmpint (get_nchars (text), ==, 3); g_assert_cmpint (get_nbytes (text), ==, 3 * t->nbytes); g_assert_cmpint (clutter_text_get_cursor_position (text), ==, 1); clutter_text_set_cursor_position (text, 2); clutter_text_delete_chars (text, 1); + if (g_test_verbose ()) + g_print ("text: %s (cursor at: %d)\n", + clutter_text_get_text (text), + clutter_text_get_cursor_position (text)); g_assert_cmpint (get_nchars (text), ==, 2); g_assert_cmpint (get_nbytes (text), ==, 2 * t->nbytes); g_assert_cmpint (clutter_text_get_cursor_position (text), ==, 1);