tasn pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3e81b73aa8998796968bf732b37a675a6d30e70e
commit 3e81b73aa8998796968bf732b37a675a6d30e70e Author: Youngbok Shin <[email protected]> Date: Tue Jun 10 15:17:41 2014 +0100 evas/tests - textblock: add a test case for item format with ellipsis. Summary: When item format is cutoff by ellipsis, *_cursor_format_item_geometry_get API should be failed at the item position. But, it can be success and returns abnormal geometry. Reviewers: woohyun, tasn CC: cedric, herdsman Differential Revision: https://phab.enlightenment.org/D974 --- src/tests/evas/evas_test_textblock.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c index d8949e2..aebb8aa 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -1538,6 +1538,13 @@ START_TEST(evas_textblock_items) evas_textblock_cursor_format_item_geometry_get(cur, NULL, NULL, &w2, &h2); fail_if((w != w2) || (h != h2)); + buf = "<ellipsis=1.0>a<item absize=64x64 vsize=ascent href=emoticon/knowing-grin></item></ellipsis>"; + evas_object_textblock_text_markup_set(tb, buf); + evas_object_resize(tb, 30, 30); + evas_textblock_cursor_pos_set(cur, 1); + if (evas_textblock_cursor_format_item_geometry_get(cur, NULL, NULL, &w, &h)) + fail_if((w != 64) || (h != 64)); + /* FIXME: Also verify x,y positions of the item. */ /* FIXME We need some item tests that involve line wrapping that make the --
