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:
Peter Hutterer 2019-09-25 16:49:08 +10:00
parent 058e198067
commit 67151ddcf5

View file

@ -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);