tasn pushed a commit to branch efl-1.8.

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

commit d29f6b13947afec31d133a71ead4713c1dd3b14f
Author: Youngbok Shin <youngb.s...@samsung.com>
Date:   Mon Dec 23 11:01:57 2013 +0900

    Evas test textblock: Added a test for a broken range_text_get case.
    
    Summary: Added a test for range_text_get case on the text that include 
multi text node.
    
    Reviewers: tasn, woohyun, seoz
    
    CC: cedric
    
    Differential Revision: https://phab.enlightenment.org/D398
---
 src/tests/evas/evas_test_textblock.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/tests/evas/evas_test_textblock.c 
b/src/tests/evas/evas_test_textblock.c
index a61fc77..643ad5a 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -2241,6 +2241,16 @@ START_TEST(evas_textblock_text_getters)
         ck_assert_str_eq(text, evas_object_textblock_text_markup_get(tb));
      }
 
+   /* complex markup range get */
+     {
+        const char *text = "Break tag tes<item size=40x40 href=a></item>t 
<br/>Next<br/> line with it<item size=40x40 href=i></item>em tag";
+        evas_object_textblock_text_markup_set(tb, text);
+        evas_textblock_cursor_pos_set(main_cur, 14);
+        evas_textblock_cursor_pos_set(cur, 37);
+        fail_if(strcmp(evas_textblock_cursor_range_text_get(main_cur, cur,
+                 EVAS_TEXTBLOCK_TEXT_MARKUP), "</item>t <br/>Next<br/> line 
with it<item size=40x40 href=i></item>e"));
+     }
+
    END_TB_TEST();
 }
 END_TEST

-- 


Reply via email to