aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-01-28 17:03:07 +0000
committerTom Hacohen <tom@stosb.com>2014-01-29 13:28:30 +0000
commit84e644f9e5c0a429583cb7b24b8ecad299a625a6 (patch)
tree8fd85db809598e15e56a5b74a49cb50a024b8097
parentEdje entry: Fix memory corruption (of by one in allocation). (diff)
downloadefl-84e644f9e5c0a429583cb7b24b8ecad299a625a6.tar.gz
Evas textblock: Added a test for range geometry with bidi text.
-rw-r--r--src/tests/evas/evas_test_textblock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 643ad5a185..31697e3153 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -1903,6 +1903,18 @@ START_TEST(evas_textblock_geometries)
EINA_LIST_FREE(rects, tr)
free(tr);
+ /* Bidi text with a few back and forth from bidi. */
+ evas_object_textblock_text_markup_set(tb, "נגכדגךלח eountoheunth ךלחגדךכלח");
+
+ evas_textblock_cursor_pos_set(cur, 0);
+ evas_textblock_cursor_pos_set(main_cur, 28);
+ rects = evas_textblock_cursor_range_geometry_get(cur, main_cur);
+
+ ck_assert_int_eq(eina_list_count(rects), 3);
+
+ EINA_LIST_FREE(rects, tr)
+ free(tr);
+
END_TB_TEST();
}
END_TEST