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 7c84acf
Browse filesBrowse the repository at this point in the historyBrowse files
if ([captureScenario isEqual:@"depth-incomplete"] && level > 0) tree[@"UIAccessibilitySnapshotKeyChildren"] = @[];
94
96
if ([captureScenario isEqual:@"depth-owner-change"] && level > 0) primaryApplication = replacementApplication;
@@ -160,7 +162,7 @@ int main(int argc, const char *argv[])
160
162
if ([scenario hasPrefix:@"api-depth-"]) {
161
163
require(levels == depth + 1, @"native levels must include the root exactly once");
162
164
NSDictionary *tree = nil;
163
-
for (NSUInteger i = 0; i < levels; i++) tree = @{@"UIAccessibilitySnapshotKeyAttributes": @{}, @"UIAccessibilitySnapshotKeyChildren": tree ? @[tree] : @[]};
165
+
for (NSUInteger i = 0; i < levels; i++) tree = @{@"UIAccessibilitySnapshotKeyAttributes": @{}, @"UIAccessibilitySnapshotKeyChildrenCount": [scenario isEqual:@"api-depth-unknown"] ? [NSNullnull] : @(tree ? 1 : 0), @"UIAccessibilitySnapshotKeyChildren": tree ? @[tree] : @[]};
164
166
return tree;
165
167
}
166
168
if ([element isEqual:@"root"]) return root;
@@ -171,7 +173,7 @@ int main(int argc, const char *argv[])
0 commit comments