From 61bf82e43c639e137d6f2fcacf4456a89e9d9f03 Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 22 Aug 2026 21:10:22 +0530 Subject: [PATCH] docs(verifier): Action's field comments name the kinds that read them X/Y were documented as Tap and InputText only, while DoubleTap and LongPress resolve coordinates from the same fields; the endpoints and DurationMillis were documented as Swipe only, and Scroll reads both. --- internal/verifier/types.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/internal/verifier/types.go b/internal/verifier/types.go index 3c29cda..ecbdbcf 100644 --- a/internal/verifier/types.go +++ b/internal/verifier/types.go @@ -19,14 +19,17 @@ type Action struct { Kind ActionKind On string Text string - // X, Y hold the element center when the spec passed an ax element to - // Tap/InputText. Zero means the runner must resolve On against the - // current hierarchy. + // X, Y hold the element center when the spec passed an ax element to a + // point-dispatched kind (Tap, DoubleTap, LongPress, InputText). Zero means + // the runner must resolve On against the current hierarchy. X, Y int - // Swipe coordinates (raw px). Used only for ActionKindSwipe. + // Gesture endpoints (raw px), read by Swipe and by Scroll. A Scroll that + // carries none has them computed from its container and Direction, so + // leaving them zero is how an authored Scroll asks for that. FromX, FromY int ToX, ToY int - // DurationMillis is the Swipe gesture duration or the Wait duration. + // DurationMillis is the Swipe or Scroll gesture duration, or the Wait + // duration. DurationMillis int // Key is the logical key name for ActionKindPressKey. Key string