summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-21 14:53:50 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 10:09:06 +0100
commit0694a54dbda7a0938b1ca58ab9c7a29b060f9f82 (patch)
tree3e56edf4d035ba5a7235e2c46b9863092991309d
parente41434d96da92dda7ac1ff81eea67964a407f55b (diff)
downloadefl-0694a54dbda7a0938b1ca58ab9c7a29b060f9f82.tar.gz
tests/gesture: add extra event callback to verify event multiplication is fixed
Differential Revision: https://phab.enlightenment.org/D11145
-rw-r--r--src/tests/elementary/efl_ui_test_gesture.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_gesture.c b/src/tests/elementary/efl_ui_test_gesture.c
index b6c251aaa5..1463283673 100644
--- a/src/tests/elementary/efl_ui_test_gesture.c
+++ b/src/tests/elementary/efl_ui_test_gesture.c
@@ -60,6 +60,13 @@ gesture_cb(void *data , const Efl_Event *ev)
count[efl_gesture_state_get(g) - 1]++;
}
+static void
+test_cb(void *data EINA_UNUSED , const Efl_Event *ev EINA_UNUSED)
+{
+}
+
+
+
static Eo *
setup(void)
{
@@ -73,6 +80,8 @@ setup(void)
rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, win);
efl_content_set(win, rect);
+ /* add extra random cb to verify that we aren't getting double events */
+ efl_event_callback_add(rect, EFL_EVENT_GESTURE_MOMENTUM, test_cb, NULL);
#define WATCH(type) \
efl_event_callback_add(rect, EFL_EVENT_GESTURE_##type, gesture_cb, &count[(type)])
WATCH(TAP);