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:
parent
481747ae33
commit
0084d8d736
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue