From e0428e9cb01513595daa49807fc711da094b3db7 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 19 Feb 2014 12:03:56 +0000 Subject: [PATCH] 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 225179cb65..414c0904f5 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, " करेंकरेंकरेंकरेंकरेंकरें"); + 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