mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 20:30:27 +01:00
test: mark the protocol A device as touch device
Now that we're emulating everything correctly, let's mark it as proper touch device. Two test cases need to be excluded: - double-down triggers an assert in the test device because this isn't possible this way with protocol A devices - the axisrange warning test can't be triggered, mtdev clips those axes Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
44702e947c
commit
2edc7e37ac
3 changed files with 4 additions and 3 deletions
|
|
@ -197,7 +197,7 @@ static int events[] = {
|
|||
|
||||
TEST_DEVICE("protocol-a",
|
||||
.type = LITEST_PROTOCOL_A_SCREEN,
|
||||
.features = LITEST_PROTOCOL_A,
|
||||
.features = LITEST_PROTOCOL_A|LITEST_TOUCH,
|
||||
.create = protocolA_create,
|
||||
|
||||
.interface = &interface,
|
||||
|
|
|
|||
|
|
@ -209,6 +209,7 @@ TEST_COLLECTION(log)
|
|||
litest_add_deviceless("log:logging", log_handler_NULL);
|
||||
litest_add_no_device("log:logging", log_priority);
|
||||
|
||||
litest_add_ranged("log:warnings", log_axisrange_warning, LITEST_TOUCH, LITEST_ANY, &axes);
|
||||
/* mtdev clips to axis ranges */
|
||||
litest_add_ranged("log:warnings", log_axisrange_warning, LITEST_TOUCH, LITEST_PROTOCOL_A, &axes);
|
||||
litest_add_ranged("log:warnings", log_axisrange_warning, LITEST_TOUCHPAD, LITEST_ANY, &axes);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1297,7 +1297,7 @@ TEST_COLLECTION(touch)
|
|||
litest_add_no_device("touch:abs-transform", touch_abs_transform);
|
||||
litest_add("touch:slots", touch_seat_slot, LITEST_TOUCH, LITEST_TOUCHPAD);
|
||||
litest_add_no_device("touch:slots", touch_many_slots);
|
||||
litest_add("touch:double-touch-down-up", touch_double_touch_down_up, LITEST_TOUCH, LITEST_ANY);
|
||||
litest_add("touch:double-touch-down-up", touch_double_touch_down_up, LITEST_TOUCH, LITEST_PROTOCOL_A);
|
||||
litest_add("touch:calibration", touch_calibration_scale, LITEST_TOUCH, LITEST_TOUCHPAD);
|
||||
litest_add("touch:calibration", touch_calibration_scale, LITEST_SINGLE_TOUCH, LITEST_TOUCHPAD);
|
||||
litest_add("touch:calibration", touch_calibration_rotation, LITEST_TOUCH, LITEST_TOUCHPAD);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue