tests/elm: fix a couple unit tests to use event starter helper function

these tests seem to have relied upon a callback being triggered which
would call ecore_main_loop_quit() prior to ecore_main_loop_begin() starting
the main loop

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9365
This commit is contained in:
Mike Blumenkrantz 2019-07-19 15:46:35 -04:00 committed by Cedric BAIL
parent 481747ae33
commit 0084d8d736
2 changed files with 2 additions and 7 deletions

View File

@ -159,7 +159,7 @@ EFL_START_TEST(elm_genlist_test_item_content)
evas_object_show(genlist);
evas_object_show(win);
ecore_main_loop_begin();
get_me_to_those_events(win);
end = elm_object_item_part_content_get(it, "elm.swallow.end");
parent = elm_object_parent_widget_get(end);

View File

@ -157,7 +157,6 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
box = elm_box_add(win);
elm_win_resize_object_add(win, box);
evas_object_show(win);
evas_object_show(box);
resettor = o = elm_button_add(win);
@ -177,13 +176,9 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
}
evas_object_resize(win, 200, 200);
//I have no idea why this is needed - but if this here is not done,
// then elements that are part of a layout will NOT be shown even if
// the window and layout is shown
evas_object_hide(win);
evas_object_show(win);
ecore_main_loop_begin();
get_me_to_those_events(win);
for (int i = 0; simple_widgets[i].name; ++i)
{