Evas tests: Added a textblock test to verify the two last fixes.

SVN revision: 61531
This commit is contained in:
Tom Hacohen 2011-07-20 15:45:25 +00:00
parent 055f9996ec
commit 859c4bd33d
1 changed files with 15 additions and 0 deletions

View File

@ -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, "<b><ps></b>");
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, "<b><ps></b>");
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