Skip to content

Commit b99b530

Browse files
authored
[NFC] Update OpenSwiftUICompatibilityTests (#434)
1 parent 24b5c30 commit b99b530

13 files changed

+31
-31
lines changed

Tests/OpenSwiftUICompatibilityTests/Data/Environment/EnvironmentValuesTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Data/Environment/EnvironmentValuesCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//
2-
// EnvironmentValuesTests.swift
2+
// EnvironmentValuesCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66

7-
struct EnvironmentValuesTests {
7+
struct EnvironmentValuesCompatibilityTests {
88
struct BoolKey: EnvironmentKey {
99
fileprivate static var name: String { "EnvironmentPropertyKey<BoolKey>" }
1010

Tests/OpenSwiftUICompatibilityTests/Data/State/StateTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Data/State/StateCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//
2-
// StateTests.swift
2+
// StateCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66
import OpenSwiftUITestsSupport
77

88
#if canImport(Darwin)
9-
struct StateTests {
9+
struct StateCompatibilityTests {
1010
@Test
1111
func appear() async throws {
1212
struct ContentView: View {

Tests/OpenSwiftUICompatibilityTests/Graphics/Color/ColorResolvedTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Graphics/Color/ColorResolvedCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// ColorResolvedTests.swift
2+
// ColorResolvedCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
@@ -8,7 +8,7 @@ import Testing
88
import OpenSwiftUI
99
#endif
1010

11-
struct ColorResolvedTests {
11+
struct ColorResolvedCompatibilityTests {
1212
@Test(arguments: [
1313
(Color.RGBColorSpace.sRGB, 0, 0, 0, 0, "#00000000", "#00000000"),
1414
(Color.RGBColorSpace.sRGB, 0.01, 0.02, 0.03, 0.04, "#0305080A", "#0305080A"),

Tests/OpenSwiftUICompatibilityTests/Graphics/Color/ModifiedColorTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Graphics/Color/ModifiedColorCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//
2-
// ModifiedColorTests.swift
2+
// ModifiedColorCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66
import Numerics
77

8-
struct ModifiedColorTests {
8+
struct ModifiedColorCompatibilityTests {
99
@available(OpenSwiftUI_v1_0, *)
1010
@Test(arguments:
1111
[

Tests/OpenSwiftUICompatibilityTests/Graphics/Color/RGBColorSpaceTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Graphics/Color/RGBColorSpaceCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//
2-
// RGBColorSpaceTests.swift
2+
// RGBColorSpaceCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66
import Numerics
77

8-
struct RGBColorSpaceTests {
8+
struct RGBColorSpaceCompatibilityTests {
99
struct IO {
1010
var input: (hue: Double, saturation: Double, brightness: Double)
1111
var output: (red: Double, green: Double, blue: Double)

Tests/OpenSwiftUICompatibilityTests/Integration/PlatformHostingControllerTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Integration/PlatformHostingControllerCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//
2-
// PlatformHostingControllerTests.swift
2+
// PlatformHostingControllerCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
#if canImport(Darwin)
66
import Testing
77
import OpenSwiftUITestsSupport
88

99
@MainActor
10-
struct PlatformHostingControllerTests {
10+
struct PlatformHostingControllerCompatibilityTests {
1111
@Test(
1212
.bug(
1313
"https://github.com/OpenSwiftUIProject/OpenGraph/issues/",

Tests/OpenSwiftUICompatibilityTests/Layout/Geometry/AngleTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Layout/Geometry/AngleCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//
2-
// AngleTests.swift
2+
// AngleCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66

7-
struct AngleTests {
7+
struct AngleCompatibilityTests {
88
private func helper(radians: Double, degrees: Double) {
99
let a1 = Angle(radians: radians)
1010
#expect(a1.radians == radians)

Tests/OpenSwiftUICompatibilityTests/Layout/Geometry/AxisTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/Layout/Geometry/AxisCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//
2-
// AxisTests.swift
2+
// AxisCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66

7-
struct AxisTests {
7+
struct AxisCompatibilityTests {
88
@Test
99
func example() {
1010
let h = Axis.horizontal

Tests/OpenSwiftUICompatibilityTests/View/AnyViewTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/View/AnyViewCompatibilityTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//
2-
// AnyViewTests.swift
2+
// AnyViewCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
import Testing
66

7-
struct AnyViewTests {
7+
struct AnyViewCompatibilityTests {
88
@Test
99
func testInitFromValue() {
1010
let empty = EmptyView()

Tests/OpenSwiftUICompatibilityTests/View/Debug/ChangedBodyPropertyTests.swift renamed to Tests/OpenSwiftUICompatibilityTests/View/Debug/ChangedBodyPropertyCompatibilityTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// ChangedBodyPropertyTests.swift
2+
// ChangedBodyPropertyCompatibilityTests.swift
33
// OpenSwiftUICompatibilityTests
44

55
#if canImport(Darwin) && !OPENSWIFTUI_SWIFT_LOG
@@ -8,7 +8,7 @@ import OSLog
88
import OpenSwiftUITestsSupport
99

1010
@MainActor
11-
struct ChangedBodyPropertyTests {
11+
struct ChangedBodyPropertyCompatibilityTests {
1212
@available(iOS 15, macOS 12, *)
1313
private func verifyLog(expected: String) throws {
1414
let store = try OSLogStore(scope: .currentProcessIdentifier)
@@ -38,7 +38,7 @@ struct ChangedBodyPropertyTests {
3838
}
3939
let vc = PlatformHostingController(rootView: ContentView())
4040
vc.triggerLayout()
41-
try verifyLog(expected: "ChangedBodyPropertyTests.ContentView: @self changed.")
41+
try verifyLog(expected: "ChangedBodyPropertyCompatibilityTests.ContentView: @self changed.")
4242
withExtendedLifetime(vc) {}
4343
}
4444

@@ -56,7 +56,7 @@ struct ChangedBodyPropertyTests {
5656
}
5757
let vc = PlatformHostingController(rootView: ContentView())
5858
vc.triggerLayout()
59-
try verifyLog(expected: "ChangedBodyPropertyTests.ContentView: @self changed.")
59+
try verifyLog(expected: "ChangedBodyPropertyCompatibilityTests.ContentView: @self changed.")
6060
withExtendedLifetime(vc) {}
6161
}
6262

@@ -74,7 +74,7 @@ struct ChangedBodyPropertyTests {
7474
}
7575
let vc = PlatformHostingController(rootView: ContentView())
7676
vc.triggerLayout()
77-
try verifyLog(expected: "ChangedBodyPropertyTests.ContentView: @self, @identity, _name changed.")
77+
try verifyLog(expected: "ChangedBodyPropertyCompatibilityTests.ContentView: @self, @identity, _name changed.")
7878
withExtendedLifetime(vc) {}
7979
}
8080
}

0 commit comments

Comments
 (0)