You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eef1a3f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+SnapshotAcquisitionTests.swift
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,19 @@
2
2
importXCTest
3
3
importAgentDeviceSnapshotPresentation
4
4
5
-
/// An element's attributes as XCTest hands them to a query predicate.
5
+
/// Snapshot attributes shared by query-predicate and capture-plan fixtures.
Copy file name to clipboardExpand all lines: apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+SnapshotCapturePlanOccupancyTests.swift
+58-51Lines changed: 58 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -70,37 +70,35 @@ private final class RunnerSlowSweepQueryStub: NSObject {
70
70
}
71
71
}
72
72
73
-
/// Per-run state for `RunnerSlowRootSnapshotStub`: the swizzled IMP cannot capture the original
74
-
/// implementation or a test-local flag.
73
+
/// The root-read delay exhausts the collapsed-tab query's processing slice. All other facts are
74
+
/// fixed, so XCTest's viewport, orientation, keyboard, and large-tree XPCs cannot consume the slice.
75
75
privateenumRunnerSlowRootSnapshotGate{
76
-
/// Longer than half the plan deadline the test passes, so whatever slice is left after the root
77
-
/// read is shorter than the read itself, while the real read still has most of `delay` to finish.
78
76
staticletdelay:TimeInterval=3
79
-
staticvaroriginal:IMP?
80
77
staticvardelayed=false
78
+
staticvarroot:XCUIElementSnapshot?
81
79
}
82
80
83
-
/// Stands in for `-[XCUIElement snapshotWithError:]` so the capture's root read, the plan's first
84
-
/// tree snapshot, takes at least `RunnerSlowRootSnapshotGate.delay` and then reads the real tree.
Copy file name to clipboardExpand all lines: apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+SynthesizedTextEntryTests.swift
0 commit comments