mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 14:40:26 +01:00
test: mark a checkpoint when asserting a tip or button event
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1186>
This commit is contained in:
parent
8c28783dd2
commit
8770c74394
1 changed files with 13 additions and 0 deletions
|
|
@ -4170,6 +4170,13 @@ _litest_assert_tablet_button_event(struct libinput *li, unsigned int button,
|
|||
struct libinput_event_tablet_tool *tev;
|
||||
enum libinput_event_type type = LIBINPUT_EVENT_TABLET_TOOL_BUTTON;
|
||||
|
||||
_litest_checkpoint(func,
|
||||
lineno,
|
||||
ANSI_CYAN,
|
||||
"asserting tablet button event button %d down: %s",
|
||||
button,
|
||||
yesno(state));
|
||||
|
||||
litest_wait_for_event(li);
|
||||
event = libinput_get_event(li);
|
||||
|
||||
|
|
@ -4269,6 +4276,12 @@ _litest_assert_tablet_tip_event(struct libinput *li,
|
|||
struct libinput_event_tablet_tool *tev;
|
||||
enum libinput_event_type type = LIBINPUT_EVENT_TABLET_TOOL_TIP;
|
||||
|
||||
_litest_checkpoint(func,
|
||||
lineno,
|
||||
ANSI_CYAN,
|
||||
"asserting tip %s event",
|
||||
state ? "down" : "up");
|
||||
|
||||
litest_wait_for_event(li);
|
||||
event = libinput_get_event(li);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue