test: replace a touch move with a timeout
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 18 Jun 2019 11:29:29 +0000 (21:29 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 19 Jun 2019 01:08:40 +0000 (11:08 +1000)
We only care about the third-finger data here, the movement of the first two
was just to get out of the base tap states. A timeout will do the same thing
here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-touchpad-tap.c

index ec60e71..0862908 100644 (file)
@@ -1696,8 +1696,8 @@ START_TEST(touchpad_3fg_tap_pressure_btntool)
        litest_touch_down(dev, 1, 70, 50);
        libinput_dispatch(li);
 
-       litest_touch_move_to(dev, 0, 50, 50, 50, 70, 10);
-       litest_touch_move_to(dev, 1, 70, 50, 50, 70, 10);
+       litest_timeout_tap();
+       libinput_dispatch(li);
        litest_drain_events(li);
 
        /* drop below the pressure threshold in the same frame as starting a