summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-03-31 12:57:28 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-03 17:13:47 +0200
commit426967c7781ccb7d5bb0aa3ddfdaa7055dd6a27e (patch)
tree3d9de95c0e06ad44d70c84964f1d6560f56b3633
parent8aaff3ba0771e9fa17abb3325b44eb4940361edd (diff)
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.c6
-rw-r--r--src/tests/elementary/suite_helpers.h2
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)
821 ecore_main_loop_iterate(); 821 ecore_main_loop_iterate();
822 } 822 }
823} 823}
824
825void
826force_render(Eo *win)
827{
828 _win_manual_render(win, NULL);
829}
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
46void event_callback_that_quits_the_main_loop_when_called(); 46void event_callback_that_quits_the_main_loop_when_called();
47void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info); 47void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info);
48 48
49 49void force_render(Eo *win);
50 50
51#define assert_object_size_eq(obj, width, height) \ 51#define assert_object_size_eq(obj, width, height) \
52do \ 52do \