From 97f625c021fa3cbbeabe4164c1fb256430d54961 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 7 Feb 2014 13:10:54 +0000 Subject: [PATCH] Evas textblock: Added tests for *_cursor_char_coord_set. There are issues with values between the beginning of the first par and the beginning of the first line. --- src/tests/evas/evas_test_textblock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c index bfed1d93f3..ac8e5cf0b4 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -400,6 +400,10 @@ START_TEST(evas_textblock_cursor) evas_textblock_cursor_paragraph_last(main_cur); fail_if(evas_textblock_cursor_compare(cur, main_cur)); + /* Try positions between the first paragraph and the first line. */ + evas_object_textblock_text_markup_set(tb, buf); + fail_if(!evas_textblock_cursor_char_coord_set(cur, 5, 1)); + /* Try positions beyond the left/right limits of lines. */ for (i = 0 ; i < 2 ; i++) {