Skip to content

Draft: tests: wl_pointer enter corners and button tests

Colin Kinloch requested to merge ColinKinloch/way-assay:wl_pointer_tests into main

Based upon !38 (merged)

This implements a way-assay interface for pointers and touch with a WLCS backend alongside tests checking enter leave events for the four corners and button tests.

These tests currently fail unless ran in serial using --test-threads=1.

It also exports the Rectangle structs to test_common.

I used f64 for window coordinates mostly to avoid casting for pointer control in the tests, position_window_absolute uses isize for which mod rect doesn't implement Coordinate. Perhaps a generic bound with TryInto<i32> would make sense for WLCS?

The corner tests were taken from weston.

Edited by Colin Kinloch

Merge request reports