Skip to content

Commit c7dece5

Browse files
committed
docs(ios-runner): the focus reader comment names the producers it serves and the bridge it does not
1 parent 279ccef commit c7dece5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotAcquisition.swift‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,9 @@ extension RunnerTests {
423423
/// Either focus is focus. `hasFocus` is the focus engine's answer (tvOS, keyboard navigation);
424424
/// the field a software keyboard is typing into holds `hasKeyboardFocus` instead, which the
425425
/// text-entry readiness check already consults. Both an element and its snapshot answer the two
426-
/// keys through KVC, so one reader serves every producer; a key the object lacks reads as false.
426+
/// keys through KVC, so one reader serves the XCTest producers (recursive tree, query sweep,
427+
/// collapsed tabs); a key the object lacks reads as false. The private-AX bridge is not among
428+
/// them: the AX server declares no keyboard-focus attribute, so it reads `hasFocus` alone.
427429
func focusBool(_ object: NSObject) -> Bool {
428430
return kvcBool(object, forKey: "hasKeyboardFocus") || kvcBool(object, forKey: "hasFocus")
429431
}

0 commit comments

Comments
 (0)