summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2020-02-05 16:01:52 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 17:41:24 +0100
commit3560b0f62f03c72dac87b244a3f76d6d31fa774b (patch)
tree15900cbbfa481751a66de6ce2c945a19dcc09da3 /src/tests/evas
parent269ed1ca346b79ed08776af429d1f09ab055bf3e (diff)
evas_object_textbox: deal with <br> <tab> without closing '/'
This causes many issues because textbox functions deals with <br> <tab> differently depending that user write them with or without '/' at the end (for example <br> vs <br/>) while most functionaliity are the same (like viewing <br> and <br/> are the same). cursor dealing with these tags can be differently. now we will assume <br> <tab> are already have there own closing tag, even if it is missing Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11293
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 76bf4c68b1..d4b036c53f 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4777,6 +4777,13 @@ EFL_START_TEST(efl_canvas_textblock_cursor)
4777 ck_assert_int_eq(rect2.y, rect.y); 4777 ck_assert_int_eq(rect2.y, rect.y);
4778#endif 4778#endif
4779 4779
4780 //Efl able to deal with br tab without closing tag "/"
4781 efl_text_markup_set(txt, "a<br>a<tab>a");
4782 efl_text_cursor_move(nCur, EFL_TEXT_CURSOR_MOVE_TYPE_FIRST);
4783 efl_text_cursor_move(cur_obj, EFL_TEXT_CURSOR_MOVE_TYPE_LAST);
4784 efl_text_cursor_range_delete(nCur, cur_obj);
4785 ck_assert_str_eq(efl_text_markup_get(txt), "");
4786
4780 END_EFL_CANVAS_TEXTBLOCK_TEST(); 4787 END_EFL_CANVAS_TEXTBLOCK_TEST();
4781} 4788}
4782EFL_END_TEST 4789EFL_END_TEST