tasn pushed a commit to branch efl-1.8.

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

commit ebae5d5f009955424548ab319ca73369096f9b59
Author: Tom Hacohen <t...@stosb.com>
Date:   Wed Feb 19 12:03:56 2014 +0000

    Evas textblock tests: Add a wrapping test for complex cluster wrapping.
    
    This test uses some Devanagari text that should have more complex
    clusters than what latin text can provide. This is a more complex
    wrapping case that should be tested and haven't been tested until now.
---
 src/tests/evas/evas_test_textblock.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/tests/evas/evas_test_textblock.c 
b/src/tests/evas/evas_test_textblock.c
index b72586e..23ec52f 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -1738,6 +1738,14 @@ START_TEST(evas_textblock_wrapping)
    ck_assert_int_eq(w, 45);
    ck_assert_int_eq(h, 16);
 
+   /* Complex compound clusters using Devanagari. */
+   evas_object_resize(tb, 0, 0);
+
+   evas_object_textblock_text_markup_set(tb, "<wrap=char> 
करेंकरेंकरेंकरेंकरेंकरें");
+   evas_object_textblock_size_formatted_get(tb, &w, &h);
+
+   fail_if(w > h); /* FIXME: Not the best test, should be more strict. */
+
    END_TB_TEST();
 }
 END_TEST

-- 


Reply via email to