Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct AnimationCompletionUITests {
}
// When run seperately, precision: 1.0 works fine
// but in the full suite, it will hit the same issue of #340
withKnownIssue("#340", isIntermittent: true) {
withKnownIssue("#690", isIntermittent: true) {
openSwiftUIAssertAnimationSnapshot(
of: ContentView()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct BezierAnimationUITests {
}
// When run seperately, precision: 1.0 works fine
// but in the full suite, it will hit the same issue of #340
withKnownIssue("$340", isIntermittent: true) {
withKnownIssue("$690", isIntermittent: true) {
openSwiftUIAssertAnimationSnapshot(
of: ContentView(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct RepeatAnimationUITests {
}
}
}
withKnownIssue("#340", isIntermittent: true) {
withKnownIssue("#690", isIntermittent: true) {
openSwiftUIAssertAnimationSnapshot(
of: ContentView(autoreverses: autoreverses),
testName: #function + "\(autoreverses)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct ColorUITests {
}
}
}
withKnownIssue("#340", isIntermittent: true) {
withKnownIssue("#690", isIntermittent: true) {
openSwiftUIAssertAnimationSnapshot(of: ContentView())
}
}
Expand Down
4 changes: 1 addition & 3 deletions Example/OpenSwiftUIUITests/Layout/Stack/ZStackUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ struct ZStackUITests {
}
}
openSwiftUIAssertSnapshot(
of: ContentView(),
// FIXME: Workaround #340
perceptualPrecision: 0.99
of: ContentView()
)
}
}
15 changes: 15 additions & 0 deletions Example/OpenSwiftUIUITests/UITests/Initialize.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Initialize.c
// OpenSwiftUIUITests
//
// Created by Kyle on 12/29/25.
//

#include "Initialize.h"
#include <stdio.h>

extern void OpenSwiftUIUITests_InitializeSwift(void);

static void OpenSwiftUIUITests_Initialize(void) {
OpenSwiftUIUITests_InitializeSwift();
}
11 changes: 11 additions & 0 deletions Example/OpenSwiftUIUITests/UITests/Initialize.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Initialize.h
// OpenSwiftUIUITests
//
// Created by Kyle on 12/29/25.
//

#pragma once

__attribute__((constructor, used))
static void OpenSwiftUIUITests_Initialize(void);
18 changes: 18 additions & 0 deletions Example/OpenSwiftUIUITests/UITests/Initialize.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Initialize.swift
// OpenSwiftUIUITests
//
// Created by Kyle on 12/29/25.
//

#if OPENSWIFTUI
@_spi(ForTestOnly)
import OpenSwiftUI
#endif

@_cdecl("OpenSwiftUIUITests_InitializeSwift")
func __initialize() -> () {
#if OPENSWIFTUI
Color.Resolved._alignWithSwiftUIImplementation = true
#endif
}
Loading