tests/elm: add wrapper for forcing manual render in tests

this can be useful when a test needs to immediately verify whether a render
is occurring

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11630
This commit is contained in:
Mike Blumenkrantz 2020-03-31 12:57:28 -04:00 committed by Marcel Hollerbach
parent 8aaff3ba07
commit 426967c778
2 changed files with 7 additions and 1 deletions

View File

@ -821,3 +821,9 @@ write_key_sequence(Eo *obj, const char *seqence)
ecore_main_loop_iterate();
}
}
void
force_render(Eo *win)
{
_win_manual_render(win, NULL);
}

View File

@ -46,7 +46,7 @@ void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSE
void event_callback_that_quits_the_main_loop_when_called();
void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info);
void force_render(Eo *win);
#define assert_object_size_eq(obj, width, height) \
do \