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: 2.0_alpha~240^2~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44acf2b658b7b862c97dcbab1dfcabafbb5aed2b;p=framework%2Fuifw%2Fevas.git Evas tests: Added a textblock test to verify the two last fixes. git-svn-id: svn+ssh://svn.enlightenment.org/var/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