forked from enlightenment/efl
tests/elm: add util function to automatically delay loop by given time
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11082
This commit is contained in:
parent
eb0dd2262d
commit
c05d8cfe75
|
@ -144,6 +144,20 @@ real_timer_add(double in, Ecore_Task_Cb cb, void *data)
|
|||
return ecore_timer_add(in, cb, data);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_timer_quit()
|
||||
{
|
||||
ecore_main_loop_quit();
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
wait_timer(double in)
|
||||
{
|
||||
ecore_timer_add(in, _timer_quit, NULL);
|
||||
ecore_main_loop_begin();
|
||||
}
|
||||
|
||||
static void
|
||||
_win_manual_render(void *data, const Efl_Event *event EINA_UNUSED)
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ int suite_setup(Eina_Bool legacy);
|
|||
void _elm2_suite_init(void);
|
||||
void _elm_suite_shutdown(void);
|
||||
void *real_timer_add(double in, Ecore_Task_Cb cb, void *data);
|
||||
void wait_timer(double in);
|
||||
void fail_on_errors_teardown(void);
|
||||
void fail_on_errors_setup(void);
|
||||
Eina_Bool is_forked(void);
|
||||
|
|
Loading…
Reference in New Issue