summaryrefslogtreecommitdiff
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
parentb3c678c14a5a9c9831f14b76cb01ae17dd9ad631 (diff)
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)
1903 EINA_LIST_FREE(rects, tr) 1903 EINA_LIST_FREE(rects, tr)
1904 free(tr); 1904 free(tr);
1905 1905
1906 /* Bidi text with a few back and forth from bidi. */
1907 evas_object_textblock_text_markup_set(tb, "נגכדגךלח eountoheunth ךלחגדךכלח");
1908
1909 evas_textblock_cursor_pos_set(cur, 0);
1910 evas_textblock_cursor_pos_set(main_cur, 28);
1911 rects = evas_textblock_cursor_range_geometry_get(cur, main_cur);
1912
1913 ck_assert_int_eq(eina_list_count(rects), 3);
1914
1915 EINA_LIST_FREE(rects, tr)
1916 free(tr);
1917
1906 END_TB_TEST(); 1918 END_TB_TEST();
1907} 1919}
1908END_TEST 1920END_TEST