diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-08-07 09:34:49 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-08-07 10:29:09 +1000 |
commit | 28fc00b5f754c8679f12317bf5593227f6ead831 (patch) | |
tree | 08d2e80c463bd230ad900f5d8d21a93218a8dc54 | |
parent | 531b1bf8dea54c21f3c269b6560a1c52c51f82ac (diff) |
test: add a 10ms delay for scrolling tests
No touchpad gives us these events with a 0 delay, so let's not test for that.
This is required for adding timing-sensitive scroll code, see
https://gitlab.freedesktop.org/libinput/libinput/issues/101.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | test/test-touchpad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-touchpad.c b/test/test-touchpad.c index 182497d1..2840f07e 100644 --- a/test/test-touchpad.c +++ b/test/test-touchpad.c @@ -124,7 +124,7 @@ test_2fg_scroll(struct litest_device *dev, double dx, double dy, bool want_sleep litest_touch_down(dev, 0, 49, 50); litest_touch_down(dev, 1, 51, 50); - litest_touch_move_two_touches(dev, 49, 50, 51, 50, dx, dy, 10, 0); + litest_touch_move_two_touches(dev, 49, 50, 51, 50, dx, dy, 10, 10); /* Avoid a small scroll being seen as a tap */ if (want_sleep) { |