summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authora.srour <a.srour@samsung.com>2019-12-24 16:34:14 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-12-24 16:34:14 +0900
commitce28963654c953404ba6d03cbc365bdf46323555 (patch)
treef1ec5d661135accc10438e7ab233e22cdef0d3f4 /src/tests/evas
parenta6a44ecb9dffef3d1efc12fa91645a3e669011fa (diff)
Efl.Text.Cursor: Fix line_jump_by return logic
Summary: From documentation `line_jump_by` should return `EINA_TRUE` if cursor moved, and `EINA_FALSE` if not moved. But the current behaviour is reversed, so this should fix it. Reviewers: ali.alzyod, segfaultxavi, woohyun Subscribers: AbdullehGhujeh, #committers, cedric, #reviewers Tags: #efl Maniphest Tasks: T8454 Differential Revision: https://phab.enlightenment.org/D10946
Diffstat (limited to 'src/tests/evas')
-rw-r--r--src/tests/evas/evas_test_textblock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 56310f9f70..43be1fcd53 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4488,12 +4488,12 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4488 efl_event_callback_add(txt, EFL_CANVAS_TEXTBLOCK_EVENT_CHANGED, _increment_int_changed, &changed_emit); 4488 efl_event_callback_add(txt, EFL_CANVAS_TEXTBLOCK_EVENT_CHANGED, _increment_int_changed, &changed_emit);
4489 const char *buf = "abcdefghij"; 4489 const char *buf = "abcdefghij";
4490 efl_text_set(txt, buf); 4490 efl_text_set(txt, buf);
4491 fail_if(strcmp(efl_text_get(txt), buf)); 4491 ck_assert_int_eq(strcmp(efl_text_get(txt), buf), 0);
4492 4492
4493 efl_text_cursor_line_jump_by(cur_obj, -1); 4493 ck_assert(!efl_text_cursor_line_jump_by(cur_obj, -1));
4494 pos = efl_text_cursor_position_get(cur_obj); 4494 pos = efl_text_cursor_position_get(cur_obj);
4495 ck_assert_int_eq(pos, 0); 4495 ck_assert_int_eq(pos, 0);
4496 efl_text_cursor_line_jump_by(cur_obj, 1); 4496 ck_assert(efl_text_cursor_line_jump_by(cur_obj, 1));
4497 pos = efl_text_cursor_position_get(cur_obj); 4497 pos = efl_text_cursor_position_get(cur_obj);
4498 ck_assert_int_eq(pos, 10); 4498 ck_assert_int_eq(pos, 10);
4499 4499