mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-23 07:20:38 +01:00
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>
This commit is contained in:
parent
34f86489a8
commit
09b59e42fb
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue