summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-01-02 07:25:35 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-02 12:16:11 +0100
commit41c7e1c908772bd8f4ec266c661faabeea357ec6 (patch)
tree6831bac6ce3e2589d9305615cc6b469b007d141f /src/tests/evas
parenta95a509cfd9dbccefe360efa3ff4b717b24adb3e (diff)
efl.text.cursor: emit events CANVAS_TEXTBLOCK_CHANGED when insert text using efl_text_cursor_markup_insert
efl.text.cursor: emit events CANVAS_TEXTBLOCK_CHANGED when insert text using efl_text_cursor_markup_insert Differential Revision: https://phab.enlightenment.org/D10985
Diffstat (limited to 'src/tests/evas')
-rw-r--r--src/tests/evas/evas_test_textblock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index ef830e8507..261c12145c 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4530,7 +4530,12 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4530 efl_text_set(txt, ""); 4530 efl_text_set(txt, "");
4531 efl_text_set(txt, ""); 4531 efl_text_set(txt, "");
4532 efl_text_cursor_text_insert(cursor1, "aa"); 4532 efl_text_cursor_text_insert(cursor1, "aa");
4533 ck_assert_int_eq(changed_emit, 3); 4533 ck_assert_int_eq(changed_emit, 4);
4534
4535 efl_text_markup_set(txt, "Hello<br/>Word");
4536 efl_text_markup_set(txt, "Hello<br/>Word");
4537 efl_text_cursor_markup_insert(cursor1, "aa");
4538 ck_assert_int_eq(changed_emit, 6);
4534 4539
4535 efl_text_set(txt, ""); 4540 efl_text_set(txt, "");
4536 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4541 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT));
@@ -4549,7 +4554,7 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4549 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LAST)); 4554 ck_assert(!efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LAST));
4550 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0); 4555 ck_assert_int_eq(efl_text_cursor_position_get(cur_obj), 0);
4551 4556
4552 ck_assert_int_eq(changed_emit, 4); 4557 ck_assert_int_eq(changed_emit, 7);
4553 4558
4554 efl_text_markup_set(txt, "Hello World<ps/>This is EFL<br/>Enlightenment"); 4559 efl_text_markup_set(txt, "Hello World<ps/>This is EFL<br/>Enlightenment");
4555 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT)); 4560 ck_assert(efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_CHAR_NEXT));