summaryrefslogtreecommitdiff
path: root/src/tests/elementary/suite_helpers.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-10 15:06:08 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-11 17:40:45 +0200
commit4a1c13f491c70397deb85a2935882447eebc34a5 (patch)
treefae87d1ffc4732ad034576282af95622ad6b20bd /src/tests/elementary/suite_helpers.c
parent1c8f6132af0e75f02d851af67aa67dc427715f20 (diff)
tests/elm: break out click helper function for reuse
also fixes lifetime issue with spin parts Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9268
Diffstat (limited to 'src/tests/elementary/suite_helpers.c')
-rw-r--r--src/tests/elementary/suite_helpers.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index 9d73c5d26b..080abadd4e 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -390,3 +390,13 @@ get_me_to_those_events(Eo *obj)
390 evas_event_callback_add(e, EVAS_CALLBACK_RENDER_POST, events_norendered, NULL); 390 evas_event_callback_add(e, EVAS_CALLBACK_RENDER_POST, events_norendered, NULL);
391 ecore_main_loop_begin(); 391 ecore_main_loop_begin();
392} 392}
393
394void
395click_object(Eo *obj)
396{
397 Evas *e = evas_object_evas_get(obj);
398 Eina_Rect r = efl_gfx_entity_geometry_get(obj);
399 evas_event_feed_mouse_move(e, r.x + r.w / 2, r.y + r.h / 2, 0, NULL);
400 evas_event_feed_mouse_down(e, 1, 0, 0, NULL);
401 evas_event_feed_mouse_up(e, 1, 0, 0, NULL);
402}