summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-19 15:46:35 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-19 15:04:50 -0700
commit0084d8d73647be73f9c37091c8c683331ad32b24 (patch)
tree80e6e963e71284b94227ee94da2445e362284963
parent481747ae33c115cc5e0d9f8a3616c6737c11da64 (diff)
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
-rw-r--r--src/tests/elementary/elm_test_genlist.c2
-rw-r--r--src/tests/elementary/elm_test_widget_focus.c7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/tests/elementary/elm_test_genlist.c b/src/tests/elementary/elm_test_genlist.c
index 8715d3be9f..ce625808d3 100644
--- a/src/tests/elementary/elm_test_genlist.c
+++ b/src/tests/elementary/elm_test_genlist.c
@@ -159,7 +159,7 @@ EFL_START_TEST(elm_genlist_test_item_content)
159 evas_object_show(genlist); 159 evas_object_show(genlist);
160 evas_object_show(win); 160 evas_object_show(win);
161 161
162 ecore_main_loop_begin(); 162 get_me_to_those_events(win);
163 163
164 end = elm_object_item_part_content_get(it, "elm.swallow.end"); 164 end = elm_object_item_part_content_get(it, "elm.swallow.end");
165 parent = elm_object_parent_widget_get(end); 165 parent = elm_object_parent_widget_get(end);
diff --git a/src/tests/elementary/elm_test_widget_focus.c b/src/tests/elementary/elm_test_widget_focus.c
index 0fb0a797a2..46814d092b 100644
--- a/src/tests/elementary/elm_test_widget_focus.c
+++ b/src/tests/elementary/elm_test_widget_focus.c
@@ -157,7 +157,6 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
157 157
158 box = elm_box_add(win); 158 box = elm_box_add(win);
159 elm_win_resize_object_add(win, box); 159 elm_win_resize_object_add(win, box);
160 evas_object_show(win);
161 evas_object_show(box); 160 evas_object_show(box);
162 161
163 resettor = o = elm_button_add(win); 162 resettor = o = elm_button_add(win);
@@ -177,13 +176,9 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
177 } 176 }
178 evas_object_resize(win, 200, 200); 177 evas_object_resize(win, 200, 200);
179 178
180 //I have no idea why this is needed - but if this here is not done,
181 // then elements that are part of a layout will NOT be shown even if
182 // the window and layout is shown
183 evas_object_hide(win);
184 evas_object_show(win); 179 evas_object_show(win);
185 180
186 ecore_main_loop_begin(); 181 get_me_to_those_events(win);
187 182
188 for (int i = 0; simple_widgets[i].name; ++i) 183 for (int i = 0; simple_widgets[i].name; ++i)
189 { 184 {