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>
This commit is contained in:
Peter Hutterer 2018-08-07 09:34:49 +10:00
parent 531b1bf8de
commit 28fc00b5f7

View file

@ -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) {