Skip to content

Commit

Permalink
test: add a 10ms delay for scrolling tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
whot committed Aug 7, 2018
1 parent 531b1bf commit 28fc00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-touchpad.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 28fc00b

Please sign in to comment.