summaryrefslogtreecommitdiff
path: root/legacy/evas/src/tests/evas_test_textblock.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-10-17 06:58:38 +0000
committerTom Hacohen <tom@stosb.com>2012-10-17 06:58:38 +0000
commit03e291eebbccf663621e5f95b72efd76a188ffb2 (patch)
tree33e3a6d96ce6ded81e059fedee0d5499ea74d16f /legacy/evas/src/tests/evas_test_textblock.c
parentb284a80e767fd8b14345f366518c958196344e3a (diff)
Evas textblock: Fixed issues when deleting some ranges.
An example broken range: "A<ps/><b>B</b>". Many thanks to WooHyun for reporting this and providing most of the fix. SVN revision: 78105
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/tests/evas_test_textblock.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/evas/src/tests/evas_test_textblock.c b/legacy/evas/src/tests/evas_test_textblock.c
index e8498f979a..e3fdfa8b6c 100644
--- a/legacy/evas/src/tests/evas_test_textblock.c
+++ b/legacy/evas/src/tests/evas_test_textblock.c
@@ -807,6 +807,17 @@ START_TEST(evas_textblock_format_removal)
807 fnode = evas_textblock_node_format_first_get(tb); 807 fnode = evas_textblock_node_format_first_get(tb);
808 fail_if(fnode); 808 fail_if(fnode);
809 809
810
811 /* Deleting a range with just one char and surrounded by formats, that
812 * deletes a paragraph. */
813 evas_object_textblock_text_markup_set(tb, "A<ps/><b>B</b>");
814 evas_textblock_cursor_pos_set(cur, 2);
815 evas_textblock_cursor_pos_set(main_cur, 3);
816 evas_textblock_cursor_range_delete(cur, main_cur);
817 fnode = evas_textblock_node_format_first_get(tb);
818 fnode = evas_textblock_node_format_next_get(fnode);
819 fail_if (fnode);
820
810 /* Two formats in the same place. */ 821 /* Two formats in the same place. */
811 evas_object_textblock_text_markup_set(tb, "a<b><a>b</a></b>b"); 822 evas_object_textblock_text_markup_set(tb, "a<b><a>b</a></b>b");
812 evas_textblock_cursor_pos_set(cur, 1); 823 evas_textblock_cursor_pos_set(cur, 1);