summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2013-12-23 11:01:57 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-12-23 11:01:57 +0900
commitb4106c90d9ec4e7a813c74afc6efb3e6a3c5fbbd (patch)
treeab2ba4e62d0bae2565ad242279238769b65b21a3
parent9c752106f75c9a6415971cd965eedaf3d15fedc6 (diff)
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
-rw-r--r--src/tests/evas/evas_test_textblock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index a61fc77e05..643ad5a185 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)
2241 ck_assert_str_eq(text, evas_object_textblock_text_markup_get(tb)); 2241 ck_assert_str_eq(text, evas_object_textblock_text_markup_get(tb));
2242 } 2242 }
2243 2243
2244 /* complex markup range get */
2245 {
2246 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";
2247 evas_object_textblock_text_markup_set(tb, text);
2248 evas_textblock_cursor_pos_set(main_cur, 14);
2249 evas_textblock_cursor_pos_set(cur, 37);
2250 fail_if(strcmp(evas_textblock_cursor_range_text_get(main_cur, cur,
2251 EVAS_TEXTBLOCK_TEXT_MARKUP), "</item>t <br/>Next<br/> line with it<item size=40x40 href=i></item>e"));
2252 }
2253
2244 END_TB_TEST(); 2254 END_TB_TEST();
2245} 2255}
2246END_TEST 2256END_TEST