summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-12-26 09:55:28 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-12-26 09:55:28 +0900
commit84685df233b2e499227a6c4e990c6216117a9a21 (patch)
tree7afadce1e9f09234c00d4fec3fc4a39c8e002a74 /src/tests/evas
parentc008309f78c285d39f3a25986a5238a89f91cff6 (diff)
efl_text_cursor: line jump by fix movement
Summary: When the cursor is at line beginning of line, and user click "Up" then "Down" on keyboard cursor will position at second character. If text is: **occaecat \n mollit** Reviewers: woohyun, zmike, cedric, segfaultxavi Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8454 Differential Revision: https://phab.enlightenment.org/D10947
Diffstat (limited to 'src/tests/evas')
-rw-r--r--src/tests/evas/evas_test_textblock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index f4806cb459..3a112a0048 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4522,6 +4522,13 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4522 efl_text_cursor_text_object_get(cursor1), 4522 efl_text_cursor_text_object_get(cursor1),
4523 efl_text_cursor_text_object_get(cursor_temp)); 4523 efl_text_cursor_text_object_get(cursor_temp));
4524 4524
4525 efl_text_set(txt, "occaecat \n mollit");
4526 efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_FIRST);
4527 efl_text_cursor_line_jump_by(cur_obj, 1);
4528 efl_text_cursor_line_jump_by(cur_obj, -1);
4529 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
4530
4531
4525 END_EFL_CANVAS_TEXTBLOCK_TEST(); 4532 END_EFL_CANVAS_TEXTBLOCK_TEST();
4526} 4533}
4527EFL_END_TEST 4534EFL_END_TEST