From 774be50e68b2d62d9dfbfa3bfffd59be7e89bf3c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 27 Apr 2016 17:00:18 +1000 Subject: [PATCH] test: use a few more events for some of the tests with large pointer movements Don't move across the touchpad in one single event, it looks like a cursor jump that we're trying to detect in future patches. Signed-off-by: Peter Hutterer Reviewed-by: Benjamin Tissoires Reviewed-by: Hans de Goede --- test/gestures.c | 4 ++-- test/touchpad.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/gestures.c b/test/gestures.c index 8ab01b64..401b0743 100644 --- a/test/gestures.c +++ b/test/gestures.c @@ -1143,7 +1143,7 @@ START_TEST(gestures_time_usec) 50, 40, 60, 40, 0, 30, - 4, 2); + 10, 2); libinput_dispatch(li); event = libinput_get_event(li); @@ -1178,7 +1178,7 @@ START_TEST(gestures_3fg_buttonarea_scroll) 40, 20, 30, 20, 0, 40, - 4, 2); + 10, 2); litest_touch_up(dev, 0); litest_touch_up(dev, 1); diff --git a/test/touchpad.c b/test/touchpad.c index 45e0a6da..6f483ee6 100644 --- a/test/touchpad.c +++ b/test/touchpad.c @@ -991,7 +991,7 @@ START_TEST(touchpad_palm_detect_palm_becomes_pointer) litest_drain_events(li); litest_touch_down(dev, 0, 99, 50); - litest_touch_move_to(dev, 0, 99, 50, 0, 70, 5, 0); + litest_touch_move_to(dev, 0, 99, 50, 0, 70, 20, 0); litest_touch_up(dev, 0); libinput_dispatch(li);