[PATCH libinput 2/3] test: use a few more events for some of the tests with large pointer movements

Peter Hutterer peter.hutterer at who-t.net
Wed Apr 27 10:36:49 UTC 2016


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 <peter.hutterer at who-t.net>
---
 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 8ab01b6..401b074 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 45e0a6d..6f483ee 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);
-- 
2.7.4



More information about the wayland-devel mailing list