test: combine two REL_WHEEL_HI_RES events into one

This would be a kernel bug to send wheel events like this so let's not
test it this way.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1187>
This commit is contained in:
Peter Hutterer 2025-04-15 13:46:51 +10:00 committed by Marge Bot
parent 42c685dbb0
commit 550ffc1160

View file

@ -896,8 +896,7 @@ START_TEST(pointer_scroll_wheel_inhibit_dir_change)
litest_drain_events(dev->libinput);
/* Scroll one detent and a bit */
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, 120);
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, 30);
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, 150);
litest_event(dev, EV_SYN, SYN_REPORT, 0);
litest_dispatch(li);
test_high_and_low_wheel_events_value(dev, REL_WHEEL_HI_RES, -150);