mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 01:10:16 +01:00
test: fix a duplicate button down where we want a button press + release
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
eb085bddec
commit
664ecaa152
1 changed files with 2 additions and 4 deletions
|
|
@ -2814,10 +2814,8 @@ START_TEST(tool_in_prox_before_start)
|
|||
libinput_event_destroy(event);
|
||||
|
||||
litest_assert_empty_queue(li);
|
||||
litest_event(dev, EV_KEY, BTN_STYLUS, 1);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_event(dev, EV_KEY, BTN_STYLUS, 1);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_button_click(dev, BTN_STYLUS, true);
|
||||
litest_button_click(dev, BTN_STYLUS, false);
|
||||
litest_assert_only_typed_events(li, LIBINPUT_EVENT_TABLET_TOOL_BUTTON);
|
||||
litest_tablet_proximity_out(dev);
|
||||
libinput_dispatch(li);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue