tests: Add a case for ellipsis in complex markup text.

Summary: Evas textblock can't cut off text properly when it has separated items.

Reviewers: tasn, woohyun, raster

Reviewed By: raster

CC: cedric, herdsman

Differential Revision: https://phab.enlightenment.org/D667
This commit is contained in:
Youngbok Shin 2014-04-02 15:57:16 +09:00 committed by Carsten Haitzler (Rasterman)
parent 9b53044b6f
commit 9128ac82a0
1 changed files with 11 additions and 0 deletions

View File

@ -1740,6 +1740,17 @@ START_TEST(evas_textblock_wrapping)
evas_object_textblock_size_formatted_get(tb, &w, &h);
fail_if((w > (nw / 2)) || (h != nh));
evas_object_textblock_text_markup_set(tb, "<color=#ff0000ff>a</>a"
"<color=#ff0000ff>a</>a"
"<color=#ff0000ff>a</>a"
"<color=#ff0000ff>a</>a"
"<color=#ff0000ff>a</>a");
evas_textblock_cursor_format_prepend(cur, "+ ellipsis=1.0");
evas_object_textblock_size_native_get(tb, &nw, &nh);
evas_object_resize(tb, nw / 2, nh);
evas_object_textblock_size_formatted_get(tb, &w, &h);
fail_if((w > (nw / 2)) || (h != nh));
evas_object_textblock_text_markup_set(tb, "aaaaaaaaaaaaaaaaaa<br/>b");
evas_textblock_cursor_format_prepend(cur, "+ ellipsis=1.0 wrap=word");
evas_object_textblock_size_native_get(tb, &nw, &nh);