summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-03-15 15:06:09 +1000
committerMarge Bot <emma+marge@anholt.net>2024-03-18 16:25:47 +0000
commit09b59e42fbe6a127171534a1587bf6c2d4b7dd17 (patch)
treec007e46d5ed2398ee3f89398916fd677f984578f
parent34f86489a837fc40700bd4de94f7e6239e3d2f96 (diff)
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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
-rw-r--r--test/test-touchpad-buttons.c8
1 files 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);