[clutter/clutter-1.18] conform/text: Add verbose output



commit c2324849fc4aa7d15abdc343f2c5afc3d7f6b4c9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jan 24 18:49:00 2014 +0000

    conform/text: Add verbose output

 tests/conform/text.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/conform/text.c b/tests/conform/text.c
index cd61f0b..30101ce 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]