summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-02-05 09:55:50 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-14 09:20:56 +0100
commitc0453132df662b0568bb450947760276e0c50d1c (patch)
treea3887abfe8b6653e7f6c79b157c99adf63cada32
parent9e53d9c017dca2098eb4bf3f96aba57d85194b45 (diff)
tests/gesture: add another tap test to check finger size works
add some move events in to shake up the recognizers and check whether taps are still working Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11292
-rw-r--r--src/tests/elementary/efl_ui_test_gesture.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_gesture.c b/src/tests/elementary/efl_ui_test_gesture.c
index db730f7..f47e4f3 100644
--- a/src/tests/elementary/efl_ui_test_gesture.c
+++ b/src/tests/elementary/efl_ui_test_gesture.c
@@ -141,6 +141,22 @@ EFL_START_TEST(test_efl_ui_gesture_taps)
141 wait_timer(0.4); 141 wait_timer(0.4);
142 RESET; 142 RESET;
143 143
144 /* verify finger size */
145 click_object_at(rect, 500, 500);
146 click_object_at(rect, 505, 505);
147 CHECK_ALL(TAP, 2, 0, 2, 0);
148 CHECK_ALL(LONG_TAP, 2, 0, 0, 2);
149 /* UPDATE -> FINISH */
150 CHECK_ALL(DOUBLE_TAP, 1, 2, 1, 0);
151 CHECK_ALL(TRIPLE_TAP, 1, 3, 0, 0);
152 CHECK_ZERO(MOMENTUM);
153 CHECK_ZERO(FLICK);
154 CHECK_ZERO(ZOOM);
155
156 /* clear states */
157 wait_timer(0.4);
158 RESET;
159
144 /* verify multiple simultaneous presses treated as same press */ 160 /* verify multiple simultaneous presses treated as same press */
145 multi_click_object(rect, 2); 161 multi_click_object(rect, 2);
146 CHECK_ALL(TAP, 1, 0, 1, 0); 162 CHECK_ALL(TAP, 1, 0, 1, 0);