From: tasn Date: Wed, 20 Jul 2011 15:45:25 +0000 (+0000) Subject: Evas tests: Added a textblock test to verify the two last fixes. X-Git-Tag: submit/trunk/20120815.174732~1106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e882d4ff3a0767094a5471b3e6aa8e12fcc27429;p=profile%2Fivi%2Fevas.git Evas tests: Added a textblock test to verify the two last fixes. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@61531 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/tests/evas_test_textblock.c b/src/tests/evas_test_textblock.c index e2d6f92..2c1f494 100644 --- a/src/tests/evas_test_textblock.c +++ b/src/tests/evas_test_textblock.c @@ -744,6 +744,21 @@ START_TEST(evas_textblock_format_removal) fnode = evas_textblock_node_format_first_get(tb); fail_if (fnode); + /* Two formats across different paragraphs with notihng in between. */ + evas_object_textblock_text_markup_set(tb, ""); + evas_textblock_cursor_pos_set(cur, 0); + evas_textblock_cursor_char_delete(cur); + fnode = evas_textblock_node_format_first_get(tb); + fail_if (fnode); + + /* Try with range */ + evas_object_textblock_text_markup_set(tb, ""); + evas_textblock_cursor_pos_set(cur, 0); + evas_textblock_cursor_pos_set(main_cur, 1); + evas_textblock_cursor_range_delete(cur, main_cur); + fnode = evas_textblock_node_format_first_get(tb); + fail_if (fnode); + END_TB_TEST(); } END_TEST