aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/evas/evas_test_textblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/evas/evas_test_textblock.c')
-rw-r--r--src/tests/evas/evas_test_textblock.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 02774ef993..b72586ea50 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -1724,6 +1724,20 @@ START_TEST(evas_textblock_wrapping)
fail_if(-1 == evas_textblock_cursor_geometry_get(cur, &cx, &cy, &cw, &ch,
NULL, EVAS_TEXTBLOCK_CURSOR_BEFORE));
+ /* Getting whites back after wrapping. */
+ evas_object_resize(tb, 1, 1);
+ evas_object_textblock_text_markup_set(tb, "<wrap=word><keyword>return</keyword> <number>0</number>;</wrap>");
+
+ evas_object_textblock_size_formatted_get(tb, &w, &h);
+ ck_assert_int_eq(w, 33);
+ ck_assert_int_eq(h, 25);
+
+ evas_object_resize(tb, 400, 400);
+
+ evas_object_textblock_size_formatted_get(tb, &w, &h);
+ ck_assert_int_eq(w, 45);
+ ck_assert_int_eq(h, 16);
+
END_TB_TEST();
}
END_TEST