mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
e58cbcdb5f
Move the scattered root-level native projects into per-platform folders and drop
the now-redundant platform prefix:
- android-ime-helper/ -> android/ime-helper/
- android-multitouch-helper/ -> android/multitouch-helper/
- android-snapshot-helper/ -> android/snapshot-helper/
- apple-runner/ -> apple/runner/
- macos-helper/ -> apple/macos-helper/
- src/platforms/linux/atspi-dump.py -> linux/atspi-dump.py
Only repo source paths move. Identity surfaces stay frozen so no user's runner
cache is invalidated on upgrade: the derived-cache key hashes source paths
relative to AgentDeviceRunner and excludes packageVersion, and the
~/.agent-device/{apple-runner,macos-helper} namespaces, the
agent-device-android-*-helper artifact/manifest/protocol names, the
AgentDeviceRunner Xcode project, and the `prepare ios-runner` CLI command are
unchanged. Updates build/package scripts, CI, package.json files+scripts,
ignore/attr/fallow configs, runtime path resolvers, and test fixtures.
Also: re-base repo-root-relative refs inside the moved apple/runner for the
added nesting level (gated XCUITest fixture walk + two doc links), and clean the
legacy dist/apple-runner packaged output so the relocated runner can't
double-ship into the wholesale-included dist (with a regression test).
25 lines
607 B
Swift
25 lines
607 B
Swift
import XCTest
|
|
|
|
extension RunnerTests {
|
|
func testSnapshotTraversalIdentityPreservesSameOriginNodesWithDifferentBounds() {
|
|
let wrapper = Self.snapshotTraversalIdentity(
|
|
elementType: .other,
|
|
label: "Article",
|
|
identifier: "",
|
|
frame: CGRect(x: 0, y: 97, width: 393, height: 48)
|
|
)
|
|
let leaf = Self.snapshotTraversalIdentity(
|
|
elementType: .other,
|
|
label: "Article",
|
|
identifier: "",
|
|
frame: CGRect(x: 0, y: 97, width: 131, height: 48)
|
|
)
|
|
|
|
#if os(iOS)
|
|
XCTAssertNotEqual(wrapper, leaf)
|
|
#else
|
|
XCTAssertEqual(wrapper, leaf)
|
|
#endif
|
|
}
|
|
}
|