summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2014-06-10 15:17:41 +0100
committerTom Hacohen <tom@stosb.com>2014-06-10 15:22:08 +0100
commit3d9549b94327838eda0528e59a4d4d126391b935 (patch)
treedb6e11a8b5109af2505aed20d02c7f22e8eba207
parentcdf9d5fd65af89836b35c99023a166f4ae9a4318 (diff)
downloadefl-3d9549b94327838eda0528e59a4d4d126391b935.tar.gz
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
-rw-r--r--src/tests/evas/evas_test_textblock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 31d4c0ca80..deac4d4714 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