Evas textblock: Added a test for range geometry with bidi text.

This commit is contained in:
Tom Hacohen 2014-01-28 17:03:07 +00:00
parent 871597f8c2
commit a5691571e3
1 changed files with 12 additions and 0 deletions

View File

@ -1900,6 +1900,18 @@ START_TEST(evas_textblock_geometries)
fail_if(eina_list_count(rects) != 3);
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);