tasn pushed a commit to branch efl-1.8.

http://git.enlightenment.org/core/efl.git/commit/?id=3cbde91cadaf9f49fb90a2b9970e197f9c2ea0ec

commit 3cbde91cadaf9f49fb90a2b9970e197f9c2ea0ec
Author: Tom Hacohen <t...@stosb.com>
Date:   Mon Feb 10 14:16:48 2014 +0000

    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.
---
 src/tests/evas/evas_test_textblock.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/tests/evas/evas_test_textblock.c 
b/src/tests/evas/evas_test_textblock.c
index 02774ef..b72586e 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

-- 


Reply via email to