tests/elm_focus: explicitly set widgets to expand+fill in test

Summary:
some widgets do not create a minimum size for themselves, resulting in
a 0x0 layout which can affect tests that rely on object visibility to
succeed without errors
Depends on D9007

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9008
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:32:06 -04:00
parent 3cafd53212
commit 772f48bdac
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
for (int i = 0; simple_widgets[i].name; ++i)
{
o = simple_widgets[i].constructor(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(box, o);
evas_object_show(o);