From 09b59e42fbe6a127171534a1587bf6c2d4b7dd17 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 15 Mar 2024 15:06:09 +1000 Subject: [PATCH] test: fix some tests that may cause pointer jumps Increase the number of events to move from one position to the next to avoid accidental pointer jumps. Part-of: --- test/test-touchpad-buttons.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-touchpad-buttons.c b/test/test-touchpad-buttons.c index f3c7a380..8af48c64 100644 --- a/test/test-touchpad-buttons.c +++ b/test/test-touchpad-buttons.c @@ -1436,7 +1436,7 @@ START_TEST(clickpad_softbutton_left_2nd_fg_move) litest_assert_empty_queue(li); litest_touch_down(dev, 1, 20, 20); - litest_touch_move_to(dev, 1, 20, 20, 80, 20, 15); + litest_touch_move_to(dev, 1, 20, 20, 80, 20, 25); libinput_dispatch(li); event = libinput_get_event(li); @@ -1518,7 +1518,7 @@ START_TEST(clickpad_softbutton_left_to_right) */ litest_touch_down(dev, 0, 30, 90); - litest_touch_move_to(dev, 0, 30, 90, 90, 90, 15); + litest_touch_move_to(dev, 0, 30, 90, 90, 90, 25); litest_drain_events(li); litest_event(dev, EV_KEY, BTN_LEFT, 1); @@ -1554,7 +1554,7 @@ START_TEST(clickpad_softbutton_right_to_left) */ litest_touch_down(dev, 0, 80, 90); - litest_touch_move_to(dev, 0, 80, 90, 30, 90, 15); + litest_touch_move_to(dev, 0, 80, 90, 30, 90, 25); litest_drain_events(li); litest_event(dev, EV_KEY, BTN_LEFT, 1); @@ -1586,7 +1586,7 @@ START_TEST(clickpad_softbutton_hover_into_buttons) litest_hover_start(dev, 0, 50, 50); libinput_dispatch(li); - litest_hover_move_to(dev, 0, 50, 50, 90, 90, 10); + litest_hover_move_to(dev, 0, 50, 50, 90, 90, 20); libinput_dispatch(li); litest_touch_move_to(dev, 0, 90, 90, 91, 91, 1);