summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-02-19 12:03:56 +0000
committerTom Hacohen <tom@stosb.com>2014-02-19 12:10:34 +0000
commitebae5d5f009955424548ab319ca73369096f9b59 (patch)
tree221f824ca5786690e7716e15fbdcca72f16a7161
parent5ff5f509fccab9196449f1c31109e316a1a7fed3 (diff)
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.
-rw-r--r--src/tests/evas/evas_test_textblock.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index b72586ea50..23ec52f806 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)
1738 ck_assert_int_eq(w, 45); 1738 ck_assert_int_eq(w, 45);
1739 ck_assert_int_eq(h, 16); 1739 ck_assert_int_eq(h, 16);
1740 1740
1741 /* Complex compound clusters using Devanagari. */
1742 evas_object_resize(tb, 0, 0);
1743
1744 evas_object_textblock_text_markup_set(tb, "<wrap=char> करेंकरेंकरेंकरेंकरेंकरें");
1745 evas_object_textblock_size_formatted_get(tb, &w, &h);
1746
1747 fail_if(w > h); /* FIXME: Not the best test, should be more strict. */
1748
1741 END_TB_TEST(); 1749 END_TB_TEST();
1742} 1750}
1743END_TEST 1751END_TEST