summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2020-01-20 10:07:40 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-01-20 10:07:40 +0900
commitad633751997324274303176696cbfc14e1ecba5d (patch)
treee6e01d1422d0cfec15d0eb2e905e07d7f88f0023 /src/tests/evas
parent6f209e48be8f875872e59e524940134f4e354c4e (diff)
efl.text.cursor: movement types rename
Summary: replace prev with previous, replace char with character Reviewers: woohyun, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8567 Differential Revision: https://phab.enlightenment.org/D11095
Diffstat (limited to 'src/tests/evas')
-rw-r--r--src/tests/evas/evas_test_textblock.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 8560e36e7c..1fee7eb5b1 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4536,10 +4536,10 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4536 ck_assert_int_eq(changed_emit, 6); 4536 ck_assert_int_eq(changed_emit, 6);
4537 4537
4538 efl_text_set(txt, ""); 4538 efl_text_set(txt, "");
4539 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4539 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_NEXT));
4540 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_PREV)); 4540 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_PREVIOUS));
4541 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT)); 4541 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT));
4542 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_PREV)); 4542 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_PREVIOUS));
4543 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_START)); 4543 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_START));
4544 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_END)); 4544 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_END));
4545 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LINE_START)); 4545 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LINE_START));
@@ -4547,7 +4547,7 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4547 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_START)); 4547 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_START));
4548 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END)); 4548 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END));
4549 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_NEXT)); 4549 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_NEXT));
4550 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_PREV)); 4550 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_PARAGRAPH_PREVIOUS));
4551 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_FIRST)); 4551 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_FIRST));
4552 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LAST)); 4552 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LAST));
4553 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0); 4553 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
@@ -4555,13 +4555,13 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4555 ck_assert_int_eq(changed_emit, 7); 4555 ck_assert_int_eq(changed_emit, 7);
4556 4556
4557 efl_text_markup_set(txt, "Hello World<ps/>This is EFL<br/>Enlightenment"); 4557 efl_text_markup_set(txt, "Hello World<ps/>This is EFL<br/>Enlightenment");
4558 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4558 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_NEXT));
4559 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 1); 4559 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 1);
4560 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_PREV)); 4560 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_PREVIOUS));
4561 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0); 4561 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
4562 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT)); 4562 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT));
4563 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 1); 4563 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 1);
4564 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_PREV)); 4564 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_PREVIOUS));
4565 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0); 4565 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
4566 4566
4567 efl_text_cursor_position_set(cur_obj, 0); 4567 efl_text_cursor_position_set(cur_obj, 0);
@@ -4575,11 +4575,11 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4575 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0); 4575 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
4576 4576
4577 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END)); 4577 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END));
4578 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4578 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_NEXT));
4579 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 5); 4579 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 5);
4580 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END)); 4580 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END));
4581 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 10); 4581 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 10);
4582 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4582 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_NEXT));
4583 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END)); 4583 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_WORD_END));
4584 ck_assert_int_ne(efl_text_cursor_position_get(cur_obj), 10); 4584 ck_assert_int_ne(efl_text_cursor_position_get(cur_obj), 10);
4585 4585
@@ -4591,7 +4591,7 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4591 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 12); 4591 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 12);
4592 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LINE_START)); 4592 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LINE_START));
4593 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 12); 4593 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 12);
4594 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_PREV)); 4594 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_PREVIOUS));
4595 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LINE_START)); 4595 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LINE_START));
4596 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0); 4596 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
4597 4597
@@ -4604,11 +4604,11 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4604 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 3); 4604 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 3);
4605 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT)); 4605 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT));
4606 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 5); 4606 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 5);
4607 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_PREV)); 4607 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_PREVIOUS));
4608 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 4); 4608 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 4);
4609 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4609 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_NEXT));
4610 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 5); 4610 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 5);
4611 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4611 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHARACTER_NEXT));
4612 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 6); 4612 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 6);
4613 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT)); 4613 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CLUSTER_NEXT));
4614 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 7); 4614 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 7);