summaryrefslogtreecommitdiff
path: root/src
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:27:45 +0000
commita5691571e3ff1de88cf0beccd86fbf7ca24535b8 (patch)
treed2ae67a0978e6f8fcb23336d47975df8e0f862cb /src
parent871597f8c20f3fc418df64669f36f9fae76d89a8 (diff)
Evas textblock: Added a test for range geometry with bidi text.
Diffstat (limited to 'src')
-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 c21c867b10..bfed1d93f3 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