summaryrefslogtreecommitdiff
path: root/src/tests/elementary/suite_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elementary/suite_helpers.c')
-rw-r--r--src/tests/elementary/suite_helpers.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index 53c473a9fa..0ee066e697 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -618,3 +618,18 @@ drag_object(Eo *obj, int x, int y, int dx, int dy, Eina_Bool iterate)
618 evas_event_feed_mouse_move(e, x + dx, y + dy, 0, NULL); 618 evas_event_feed_mouse_move(e, x + dx, y + dy, 0, NULL);
619 evas_event_feed_mouse_up(e, 1, 0, 0, NULL); 619 evas_event_feed_mouse_up(e, 1, 0, 0, NULL);
620} 620}
621
622void
623write_key_sequence(Eo *obj, const char *seqence)
624{
625 Evas *e = evas_object_evas_get(obj);
626 for (unsigned int i = 0; i < strlen(seqence); ++i)
627 {
628 const char part_seq[] = {seqence[i], '\0'};
629
630 evas_event_feed_key_down(e, part_seq, part_seq, part_seq, part_seq, 0, NULL);
631 ecore_main_loop_iterate();
632 evas_event_feed_key_up(e, part_seq, part_seq, part_seq, part_seq, 0, NULL);
633 ecore_main_loop_iterate();
634 }
635}