aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-02-10 14:16:48 +0000
committerTom Hacohen <tom@stosb.com>2014-02-10 14:19:34 +0000
commit3cbde91cadaf9f49fb90a2b9970e197f9c2ea0ec (patch)
tree88efc03e42b32a24b542a9d02129a3094bc02ae2
parentEvas textblock: Fixed *_cursor_char_coord_set with some y values. (diff)
downloadefl-3cbde91cadaf9f49fb90a2b9970e197f9c2ea0ec.tar.gz
Evas textblock: Added a test for rendering of spaces in some cases.
This checks that spaces are one again used, in a specific case with wrapping.
-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