summaryrefslogtreecommitdiff
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
parenta4287e8703c9853481cc91c7b33785aedec8c2d6 (diff)
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)
1724 fail_if(-1 == evas_textblock_cursor_geometry_get(cur, &cx, &cy, &cw, &ch, 1724 fail_if(-1 == evas_textblock_cursor_geometry_get(cur, &cx, &cy, &cw, &ch,
1725 NULL, EVAS_TEXTBLOCK_CURSOR_BEFORE)); 1725 NULL, EVAS_TEXTBLOCK_CURSOR_BEFORE));
1726 1726
1727 /* Getting whites back after wrapping. */
1728 evas_object_resize(tb, 1, 1);
1729 evas_object_textblock_text_markup_set(tb, "<wrap=word><keyword>return</keyword> <number>0</number>;</wrap>");
1730
1731 evas_object_textblock_size_formatted_get(tb, &w, &h);
1732 ck_assert_int_eq(w, 33);
1733 ck_assert_int_eq(h, 25);
1734
1735 evas_object_resize(tb, 400, 400);
1736
1737 evas_object_textblock_size_formatted_get(tb, &w, &h);
1738 ck_assert_int_eq(w, 45);
1739 ck_assert_int_eq(h, 16);
1740
1727 END_TB_TEST(); 1741 END_TB_TEST();
1728} 1742}
1729END_TEST 1743END_TEST