aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-11-19 15:36:34 +0000
committerTom Hacohen <tom@stosb.com>2013-11-19 15:56:49 +0000
commit0e363f54b4b8adcf5c084992f85660d1aa17a825 (patch)
tree4f49645fa4ddf3b6efe89cac8bd97e4b5c41e443
parentEvas textblock tests: Added a complex markup set/get test. (diff)
downloadefl-0e363f54b4b8adcf5c084992f85660d1aa17a825.tar.gz
Evas textblock tests: Added tests for correct tag ordering.
Check that tags entered are correctly ordered.
-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 e9d8c032a3..508f80416b 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), "<item>"));
fail_if(!evas_textblock_cursor_format_is_visible_get(cur));
+ evas_object_textblock_text_markup_set(tb, "abc<br/>def");
+ evas_textblock_cursor_pos_set(cur, 3);
+ evas_object_textblock_text_markup_prepend(cur, "<b></b>");
+ ck_assert_str_eq(evas_object_textblock_text_markup_get(tb), "abc<b></b><br/>def");
+ evas_object_textblock_text_markup_set(tb, "abc<br/>def");
+ evas_textblock_cursor_pos_set(cur, 2);
+ evas_object_textblock_text_markup_prepend(cur, "<b></b>");
+ ck_assert_str_eq(evas_object_textblock_text_markup_get(tb), "ab<b></b>c<br/>def");
+
+
END_TB_TEST();
}
END_TEST