test(cua-macos): exercise traversal budgets on the AppKit fixture

This commit is contained in:
creatixchu committed 2026-11-09 14:13:11 +08:00
1 parent 6b3ed06115
commit 9bd4a9aad7
1 file changed
+3 -1
@@ -167,7 +167,9 @@ def main():
time.sleep(0.025)
primary_params = {**owner, "windowId": primary["windowId"], "maxElements": 300, "maxDepth": 20}
secondary_params = {**owner, "windowId": secondary["windowId"], "maxElements": 300, "maxDepth": 20}
first = call("getState", primary_params)
limited = call("getState", {**primary_params, "maxElements": 1})
assert limited["truncated"] and "maxElements=1" in limited["tree"], limited
first = call("getState", {**primary_params, "maxElements": 100000, "maxDepth": 512})
second = call("getState", secondary_params)
assert "Increment secondary" not in first["tree"], first
assert "Increment primary" not in second["tree"], second