mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 04:40:25 +01:00
test: don't use debounced clicks for the middle button emulation click
This used to work under valgrind up to F30 but with the F31 beta something is now a tad slower so it triggers the timeouts before the middle emulation kicks in. The middlebutton timeout is 50ms and the first debounce timeout is 30ms, so if we're late by 20ms, well, there goes the timeout. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
058e198067
commit
67151ddcf5
1 changed files with 4 additions and 4 deletions
|
|
@ -1171,8 +1171,8 @@ START_TEST(pointer_scroll_button_middle_emulation)
|
|||
|
||||
litest_drain_events(li);
|
||||
|
||||
litest_button_click_debounced(dev, li, BTN_LEFT, 1);
|
||||
litest_button_click_debounced(dev, li, BTN_RIGHT, 1);
|
||||
litest_button_click(dev, BTN_LEFT, 1);
|
||||
litest_button_click(dev, BTN_RIGHT, 1);
|
||||
libinput_dispatch(li);
|
||||
litest_timeout_buttonscroll();
|
||||
libinput_dispatch(li);
|
||||
|
|
@ -1184,8 +1184,8 @@ START_TEST(pointer_scroll_button_middle_emulation)
|
|||
|
||||
libinput_dispatch(li);
|
||||
|
||||
litest_button_click_debounced(dev, li, BTN_LEFT, 0);
|
||||
litest_button_click_debounced(dev, li, BTN_RIGHT, 0);
|
||||
litest_button_click(dev, BTN_LEFT, 0);
|
||||
litest_button_click(dev, BTN_RIGHT, 0);
|
||||
libinput_dispatch(li);
|
||||
|
||||
litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, -1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue