diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2019-08-05 13:57:48 -0400 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-08-06 09:26:38 +0200 |
commit | e9e8078cec9100993f8124f9ad7bf1158c8e0cea (patch) | |
tree | fca521b057f40c73d69f82830f1e73672a071b5f | |
parent | f8dcb7dc2b8dad636989e988d53f81e705a1718c (diff) | |
download | efl-e9e8078cec9100993f8124f9ad7bf1158c8e0cea.tar.gz |
tests/elm: add helper callback for automatically quitting main loop when triggered
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9506
-rw-r--r-- | src/tests/elementary/suite_helpers.c | 6 | ||||
-rw-r--r-- | src/tests/elementary/suite_helpers.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c index ff5530a93f..44c34e58ae 100644 --- a/src/tests/elementary/suite_helpers.c +++ b/src/tests/elementary/suite_helpers.c @@ -467,6 +467,12 @@ event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointe } void +event_callback_that_quits_the_main_loop_when_called() +{ + ecore_main_loop_quit(); +} + +void click_object_at(Eo *obj, int x, int y) { Evas *e = evas_object_evas_get(obj); diff --git a/src/tests/elementary/suite_helpers.h b/src/tests/elementary/suite_helpers.h index 0dc3944173..a063869f2b 100644 --- a/src/tests/elementary/suite_helpers.h +++ b/src/tests/elementary/suite_helpers.h @@ -15,4 +15,5 @@ void click_object(Eo *obj); void click_part(Eo *obj, const char *part); void click_object_at(Eo *obj, int x, int y); void event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED); +void event_callback_that_quits_the_main_loop_when_called(); #endif |