forked from enlightenment/efl
Evas textblock: Added a test for range geometry with bidi text.
This commit is contained in:
parent
871597f8c2
commit
a5691571e3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue