mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-04 01:40:37 +02:00
test: drop ifdef'd out test
It's been ifdef'd out for long enough that clearly this test doesn't matter anymore.
This commit is contained in:
parent
4096d100ee
commit
f0894aac67
1 changed files with 0 additions and 39 deletions
|
|
@ -164,45 +164,6 @@ MUNIT_TEST(eistest_cliend_bind_some_caps)
|
|||
return MUNIT_OK;
|
||||
}
|
||||
|
||||
#if 0
|
||||
MUNIT_TEST(eistest_ranges)
|
||||
{
|
||||
_unref_(peck) *peck = peck_new();
|
||||
|
||||
peck_enable_eis_behavior(peck, PECK_EIS_BEHAVIOR_ACCEPT_CLIENT);
|
||||
peck_enable_eis_behavior(peck, PECK_EIS_BEHAVIOR_DEFAULT_SEAT);
|
||||
|
||||
peck_dispatch_until_stable(peck);
|
||||
|
||||
with_client(peck) {
|
||||
struct ei_seat *seat = peck_ei_get_default_seat(peck);
|
||||
_unref_(ei_device) *d = ei_device_new(seat);
|
||||
ei_device_configure_capability(d, EI_DEVICE_CAP_POINTER_ABSOLUTE);
|
||||
ei_device_configure_capability(d, EI_DEVICE_CAP_TOUCH);
|
||||
ei_device_pointer_configure_range(d, 1024, 768);
|
||||
ei_device_touch_configure_range(d, 1920, 1200);
|
||||
ei_device_add(d);
|
||||
}
|
||||
|
||||
peck_dispatch_until_stable(peck);
|
||||
|
||||
with_server(peck) {
|
||||
_unref_(eis_event) *event =
|
||||
peck_eis_next_event(eis, EIS_EVENT_DEVICE_ADDED);
|
||||
|
||||
struct eis_device *device = eis_event_get_device(event);
|
||||
munit_assert(eis_device_has_capability(device, EIS_DEVICE_CAP_POINTER_ABSOLUTE));
|
||||
munit_assert(eis_device_has_capability(device, EIS_DEVICE_CAP_TOUCH));
|
||||
munit_assert_int(eis_device_pointer_get_width(device), ==, 1024);
|
||||
munit_assert_int(eis_device_pointer_get_height(device), ==, 768);
|
||||
munit_assert_int(eis_device_touch_get_width(device), ==, 1920);
|
||||
munit_assert_int(eis_device_touch_get_height(device), ==, 1200);
|
||||
}
|
||||
|
||||
return MUNIT_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
MUNIT_TEST(eistest_device_resume_pause_twice)
|
||||
{
|
||||
_unref_(peck) *peck = peck_new();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue