mirror of
https://github.com/burakgon/OpenScreens.git
synced 2026-12-02 06:09:28 +08:00
Add an interface test target. Each test runs a screen-sharing server in the test runner, launches the app pointed at it, and checks what the server received: a tap clicks where the finger is, two fingers right-click, a press and drag holds the button down, trackpad mode moves the pointer and clicks where it rests, typed text arrives with nothing left held, and disconnecting closes the connection. Positions are checked as distances between two touches, because the picture is fitted inside the device's safe area, which a test cannot see and which is not symmetrical on every device. Passes on iPhone 18 Pro and iPad Pro. On the iPhone Duo simulator's cover display the two-finger tap that XCTest synthesises is never recognised and that test fails; the others pass there.