fix: scope control fades to preserve responsive window animation
This commit is contained in:
@@ -46,10 +46,12 @@ def check_window_layout(root, app, fixtures):
|
||||
)
|
||||
log = diagnostics.read_text(errors="replace") if diagnostics.exists() else ""
|
||||
report = json.loads(result_path.read_text()) if result_path.exists() else {}
|
||||
if result.returncode != 0 or not report.get("passed") or report.get("steps") != 32:
|
||||
expected_animations = 0 if report.get("reduceMotion") else 16
|
||||
if (result.returncode != 0 or not report.get("passed") or report.get("steps") != 32
|
||||
or report.get("animatedTransitions") != expected_animations):
|
||||
raise RuntimeError(f"native window layout failed: {report}; {result.stdout}{result.stderr}{log}")
|
||||
print("PASS native SwiftUI window layout: repeated compact/normal transitions with queue open/closed, "
|
||||
"rapid intent changes, original window and exact normal geometry restored")
|
||||
print(f"PASS native SwiftUI window layout: {report['animatedTransitions']} observed animations, "
|
||||
"responsive mid-animation requests, queue open/closed, minimum sizes and exact normal geometry restored")
|
||||
|
||||
|
||||
def check_cli_instances(root, app, fixtures):
|
||||
|
||||
Reference in New Issue
Block a user