mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-24 03:10:37 +01:00
test: add missing button state assertion for eraser button release
The second 'Expect button event' block in tablet_eraser_button_different_buttons is missing the button state assertion that the first block has. This event should be a BUTTON_STATE_RELEASED (the eraser left proximity), but without the check the test passes even if the state is wrong. Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1444>
This commit is contained in:
parent
32fd9ec95f
commit
f86d5ab2ab
1 changed files with 2 additions and 0 deletions
|
|
@ -8024,6 +8024,8 @@ START_TEST(tablet_eraser_button_different_buttons)
|
|||
_destroy_(libinput_event) *ev = libinput_get_event(li);
|
||||
auto tev =
|
||||
litest_is_tablet_event(ev, LIBINPUT_EVENT_TABLET_TOOL_BUTTON);
|
||||
litest_assert_enum_eq(libinput_event_tablet_tool_get_button_state(tev),
|
||||
LIBINPUT_BUTTON_STATE_RELEASED);
|
||||
litest_assert_int_eq(libinput_event_tablet_tool_get_button(tev),
|
||||
eraser_button_mapping);
|
||||
litest_assert_ptr_eq(libinput_event_tablet_tool_get_tool(tev), pen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue