From 0e363f54b4b8adcf5c084992f85660d1aa17a825 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 19 Nov 2013 15:36:34 +0000 Subject: [PATCH] Evas textblock tests: Added tests for correct tag ordering. Check that tags entered are correctly ordered. --- 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 e9d8c03..508f804 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -2450,6 +2450,16 @@ START_TEST(evas_textblock_formats) fail_if(strcmp(evas_textblock_cursor_content_get(cur), "")); fail_if(!evas_textblock_cursor_format_is_visible_get(cur)); + evas_object_textblock_text_markup_set(tb, "abc
def"); + evas_textblock_cursor_pos_set(cur, 3); + evas_object_textblock_text_markup_prepend(cur, ""); + ck_assert_str_eq(evas_object_textblock_text_markup_get(tb), "abc
def"); + evas_object_textblock_text_markup_set(tb, "abc
def"); + evas_textblock_cursor_pos_set(cur, 2); + evas_object_textblock_text_markup_prepend(cur, ""); + ck_assert_str_eq(evas_object_textblock_text_markup_get(tb), "abc
def"); + + END_TB_TEST(); } END_TEST -- 2.7.4