summaryrefslogtreecommitdiff
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
parent61264aebe3d15cd524371454a9cca7ec0a9e3198 (diff)
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)
2450 fail_if(strcmp(evas_textblock_cursor_content_get(cur), "<item>")); 2450 fail_if(strcmp(evas_textblock_cursor_content_get(cur), "<item>"));
2451 fail_if(!evas_textblock_cursor_format_is_visible_get(cur)); 2451 fail_if(!evas_textblock_cursor_format_is_visible_get(cur));
2452 2452
2453 evas_object_textblock_text_markup_set(tb, "abc<br/>def");
2454 evas_textblock_cursor_pos_set(cur, 3);
2455 evas_object_textblock_text_markup_prepend(cur, "<b></b>");
2456 ck_assert_str_eq(evas_object_textblock_text_markup_get(tb), "abc<b></b><br/>def");
2457 evas_object_textblock_text_markup_set(tb, "abc<br/>def");
2458 evas_textblock_cursor_pos_set(cur, 2);
2459 evas_object_textblock_text_markup_prepend(cur, "<b></b>");
2460 ck_assert_str_eq(evas_object_textblock_text_markup_get(tb), "ab<b></b>c<br/>def");
2461
2462
2453 END_TB_TEST(); 2463 END_TB_TEST();
2454} 2464}
2455END_TEST 2465END_TEST