woohyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f5e13284d7d6cb2f8795e1ae87ff5b407ed56837

commit f5e13284d7d6cb2f8795e1ae87ff5b407ed56837
Author: abdulleh Ghujeh <[email protected]>
Date:   Thu Feb 6 15:36:30 2020 +0900

    Evas Textblock: update obstacle test
    
    Summary:
    Update the test to check that the first character is rendered after the 
obstacle.
    To ensure that the obstacle feature keeps working correctly.
    
    Reviewers: ali.alzyod, woohyun
    
    Reviewed By: ali.alzyod
    
    Subscribers: segfaultxavi, cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11033
---
 src/tests/evas/evas_test_textblock.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/tests/evas/evas_test_textblock.c 
b/src/tests/evas/evas_test_textblock.c
index d4b036c53f..a4e493a428 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4094,6 +4094,8 @@ EFL_START_TEST(evas_textblock_obstacle)
    evas_object_resize(rect, 50, 50);
    evas_object_resize(rect2, 50, 50);
    evas_object_resize(rect3, 50, 50);
+   evas_object_resize(tb, 300, 400);
+
    evas_object_textblock_text_markup_set(tb, buf);
    evas_textblock_cursor_format_prepend(cur, "<wrap=word>");
    evas_object_textblock_size_formatted_get(tb, &fw, &fh);
@@ -4110,6 +4112,11 @@ EFL_START_TEST(evas_textblock_obstacle)
    evas_object_show(rect2);
    evas_object_show(rect3);
 
+   /*check if first character after the obstacle*/
+   Evas_Coord cx;
+   evas_textblock_cursor_char_geometry_get(cur, &cx, NULL, NULL, NULL);
+   ck_assert_int_eq(cx, 50);
+
    /* Compare formatted size with and without obstacle */
    _obstacle_run(tb, rect, 0, fw, fh / 2, fh / 2, fh);
    /* Now, with bigger obstacles */

-- 


Reply via email to