diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2020-03-31 12:57:28 -0400 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-04-03 17:13:47 +0200 |
commit | 426967c7781ccb7d5bb0aa3ddfdaa7055dd6a27e (patch) | |
tree | 3d9de95c0e06ad44d70c84964f1d6560f56b3633 | |
parent | 8aaff3ba0771e9fa17abb3325b44eb4940361edd (diff) | |
download | efl-426967c7781ccb7d5bb0aa3ddfdaa7055dd6a27e.tar.gz |
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
-rw-r--r-- | src/tests/elementary/suite_helpers.c | 6 | ||||
-rw-r--r-- | src/tests/elementary/suite_helpers.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c index e6c6441957..a5d8b051de 100644 --- a/src/tests/elementary/suite_helpers.c +++ b/src/tests/elementary/suite_helpers.c @@ -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); +} diff --git a/src/tests/elementary/suite_helpers.h b/src/tests/elementary/suite_helpers.h index cf7b1e7490..4afae79024 100644 --- a/src/tests/elementary/suite_helpers.h +++ b/src/tests/elementary/suite_helpers.h @@ -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 \ |