summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_suite.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-06 14:14:02 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-09-13 09:53:46 +0200
commit8537ad4282f314d6c117fd161c9af924dcc43cbe (patch)
tree037c6e360a78abbd7f7975128ae564ca301cfcea /src/tests/elementary/elm_suite.c
parent0b79c20c1635b4a4a9cf15056ba57c4bf11c0887 (diff)
tests/elm: use custom tick source for animator events
ensure that animator ticks are occurring at the same time as render dumping in order to further speed up tests Differential Revision: https://phab.enlightenment.org/D6766
Diffstat (limited to 'src/tests/elementary/elm_suite.c')
-rw-r--r--src/tests/elementary/elm_suite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index 103d1a7..198179b 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -137,6 +137,7 @@ static const Efl_Test_Case etc_init[] = {
137static Eina_Bool 137static Eina_Bool
138_win_manual_render(void *data) 138_win_manual_render(void *data)
139{ 139{
140 ecore_animator_custom_tick();
140 evas_norender(evas_object_evas_get(data)); 141 evas_norender(evas_object_evas_get(data));
141 return EINA_TRUE; 142 return EINA_TRUE;
142} 143}
@@ -160,6 +161,7 @@ _elm_suite_win_create()
160 if (!buffer) return win; 161 if (!buffer) return win;
161 ecore_evas_manual_render_set(ecore_evas_ecore_evas_get(evas_object_evas_get(win)), EINA_TRUE); 162 ecore_evas_manual_render_set(ecore_evas_ecore_evas_get(evas_object_evas_get(win)), EINA_TRUE);
162 edje_frametime_set(BUFFER_RENDER_INTERVAL); 163 edje_frametime_set(BUFFER_RENDER_INTERVAL);
164 ecore_animator_source_set(ECORE_ANIMATOR_SOURCE_CUSTOM);
163 evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL); 165 evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL);
164 evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL); 166 evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL);
165 return win; 167 return win;