From: Mike Blumenkrantz Date: Mon, 21 Oct 2019 19:52:17 +0000 (-0400) Subject: tests/genlist: fix tree test sizing X-Git-Tag: submit/tizen/20191111.023126~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cca0ebe3eb59a5c939d4111d187830ed5db338f0;p=platform%2Fupstream%2Fefl.git tests/genlist: fix tree test sizing for some reason I used 10px as the base height of a genlist item when clearly they are more like 30px Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D10513 --- diff --git a/src/tests/elementary/elm_test_genlist.c b/src/tests/elementary/elm_test_genlist.c index ce62580..3d6474a 100644 --- a/src/tests/elementary/elm_test_genlist.c +++ b/src/tests/elementary/elm_test_genlist.c @@ -383,6 +383,7 @@ EFL_START_TEST(elm_genlist_test_item_destroy) EFL_END_TEST #define NUM_TREE_ITEMS 10 +#define GL_ITEM_SIZE_ISH 30 static Evas_Object * genlist_tree_test_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) @@ -499,6 +500,7 @@ EFL_START_TEST(elm_genlist_test_tree_expand) evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_weight_set(win, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_genlist_item_append(genlist, &itc, NULL/* item data */, NULL/* parent */, ELM_GENLIST_ITEM_TREE, NULL/* func */, @@ -510,9 +512,10 @@ EFL_START_TEST(elm_genlist_test_tree_expand) NULL/* func data */); evas_object_show(genlist); - evas_object_resize(genlist, 100, 10 + 10 * NUM_TREE_ITEMS); + evas_object_resize(genlist, 100, 10 + GL_ITEM_SIZE_ISH * NUM_TREE_ITEMS); evas_object_show(win); - evas_object_resize(win, 100, 10 + 10 * NUM_TREE_ITEMS); + evas_object_resize(win, 100, 10 + GL_ITEM_SIZE_ISH * NUM_TREE_ITEMS); + ecore_main_loop_begin(); } EFL_END_TEST