From e93a7e243c3c43be59fbbfacaae9a55c5dd923a0 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 11 Dec 2008 11:56:44 +0000 Subject: [PATCH] Add comments in the test suite Comment why we need to enable the editability of the Text actor inside the test suite. This should clarify commit ea508ea528d61ae478d8bc4c88f54a89304f18e8 --- tests/conform/test-clutter-text.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conform/test-clutter-text.c b/tests/conform/test-clutter-text.c index 993478c4d..e6662182a 100644 --- a/tests/conform/test-clutter-text.c +++ b/tests/conform/test-clutter-text.c @@ -159,6 +159,7 @@ test_text_prepend_some (TestConformSimpleFixture *fixture, int j; clutter_text_insert_unichar (text, t->unichar); + g_assert_cmpint (get_nchars (text), ==, 1); g_assert_cmpint (get_nbytes (text), ==, 1 * t->nbytes); g_assert_cmpint (clutter_text_get_cursor_position (text), ==, -1); @@ -166,6 +167,7 @@ test_text_prepend_some (TestConformSimpleFixture *fixture, for (j = 2; j <= 4; j++) { insert_unichar (text, t->unichar, 0); + g_assert_cmpint (get_nchars (text), ==, j); g_assert_cmpint (get_nbytes (text), ==, j * t->nbytes); g_assert_cmpint (clutter_text_get_cursor_position (text), ==, 1); @@ -310,6 +312,7 @@ test_text_cursor (TestConformSimpleFixture *fixture, ClutterText *text = CLUTTER_TEXT (clutter_text_new ()); int i; + /* only editable entries listen to events */ clutter_text_set_editable (text, TRUE); for (i = 0; i < G_N_ELEMENTS (test_text_data); i++) @@ -356,6 +359,7 @@ test_text_event (TestConformSimpleFixture *fixture, ClutterText *text = CLUTTER_TEXT (clutter_text_new ()); int i; + /* only editable entries listen to events */ clutter_text_set_editable (text, TRUE); for (i = 0; i < G_N_ELEMENTS (test_text_data); i++)