Skip to content

Commit f1090fa

Browse files
committed
wip
1 parent 335e25c commit f1090fa

File tree

2 files changed

+112
-112
lines changed

2 files changed

+112
-112
lines changed
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
#if !os(macOS)
2-
import SwiftUI
3-
import SwiftUIIntrospect
4-
import XCTest
5-
6-
final class FullScreenCoverTests: XCTestCase {
7-
func testPresentationAsFullScreenCover() throws {
8-
#if !os(visionOS)
9-
throw XCTSkip("FIXME: this doesn't pass on anything other than visionOS, even though introspection works in the Showcase app")
10-
#endif
11-
12-
guard #available(iOS 14, tvOS 14, *) else {
13-
throw XCTSkip()
14-
}
15-
16-
XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
17-
let spy0 = spies[0]
18-
19-
Text("Root")
20-
.fullScreenCover(isPresented: .constant(true)) {
21-
Text("Content")
22-
#if os(iOS) || os(tvOS) || os(visionOS)
23-
.introspect(
24-
.fullScreenCover,
25-
on: .iOS(.v14, .v15, .v16, .v17), .tvOS(.v14, .v15, .v16, .v17), .visionOS(.v1),
26-
customize: spy0
27-
)
28-
#endif
29-
}
30-
}
31-
}
32-
}
33-
#endif
1+
//#if !os(macOS)
2+
//import SwiftUI
3+
//import SwiftUIIntrospect
4+
//import XCTest
5+
//
6+
//final class FullScreenCoverTests: XCTestCase {
7+
// func testPresentationAsFullScreenCover() throws {
8+
// #if !os(visionOS)
9+
// throw XCTSkip("FIXME: this doesn't pass on anything other than visionOS, even though introspection works in the Showcase app")
10+
// #endif
11+
//
12+
// guard #available(iOS 14, tvOS 14, *) else {
13+
// throw XCTSkip()
14+
// }
15+
//
16+
// XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
17+
// let spy0 = spies[0]
18+
//
19+
// Text("Root")
20+
// .fullScreenCover(isPresented: .constant(true)) {
21+
// Text("Content")
22+
// #if os(iOS) || os(tvOS) || os(visionOS)
23+
// .introspect(
24+
// .fullScreenCover,
25+
// on: .iOS(.v14, .v15, .v16, .v17), .tvOS(.v14, .v15, .v16, .v17), .visionOS(.v1),
26+
// customize: spy0
27+
// )
28+
// #endif
29+
// }
30+
// }
31+
// }
32+
//}
33+
//#endif
Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
1-
#if !os(macOS)
2-
import SwiftUI
3-
import SwiftUIIntrospect
4-
import XCTest
5-
6-
final class SheetTests: XCTestCase {
7-
#if os(iOS)
8-
func testSheet() throws {
9-
XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
10-
let spy0 = spies[0]
11-
12-
Text("Root")
13-
.sheet(isPresented: .constant(true)) {
14-
Text("Sheet")
15-
.introspect(
16-
.sheet,
17-
on: .iOS(.v13, .v14, .v15, .v16, .v17), .tvOS(.v13, .v14, .v15, .v16, .v17),
18-
customize: spy0
19-
)
20-
}
21-
}
22-
}
23-
24-
func testSheetAsSheetPresentationController() throws {
25-
guard #available(iOS 15, tvOS 15, *) else {
26-
throw XCTSkip()
27-
}
28-
29-
XCTAssertViewIntrospection(of: UISheetPresentationController.self) { spies in
30-
let spy0 = spies[0]
31-
32-
Text("Root")
33-
.sheet(isPresented: .constant(true)) {
34-
Text("Sheet")
35-
.introspect(
36-
.sheet,
37-
on: .iOS(.v15, .v16, .v17),
38-
customize: spy0
39-
)
40-
}
41-
}
42-
}
43-
#elseif os(tvOS)
44-
func testSheet() throws {
45-
throw XCTSkip("FIXME: this test doesn't pass for some reason, even though introspection works in the Showcase app")
46-
47-
XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
48-
let spy0 = spies[0]
49-
50-
Text("Root")
51-
.sheet(isPresented: .constant(true)) {
52-
Text("Content")
53-
.introspect(
54-
.sheet,
55-
on: .tvOS(.v13, .v14, .v15, .v16, .v17),
56-
customize: spy0
57-
)
58-
}
59-
}
60-
}
61-
#elseif os(visionOS)
62-
func testSheet() throws {
63-
XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
64-
let spy0 = spies[0]
65-
66-
Text("Root")
67-
.sheet(isPresented: .constant(true)) {
68-
Text("Sheet")
69-
.introspect(
70-
.sheet,
71-
on: .visionOS(.v1),
72-
customize: spy0
73-
)
74-
}
75-
}
76-
}
77-
#endif
78-
}
79-
#endif
1+
//#if !os(macOS)
2+
//import SwiftUI
3+
//import SwiftUIIntrospect
4+
//import XCTest
5+
//
6+
//final class SheetTests: XCTestCase {
7+
// #if os(iOS)
8+
// func testSheet() throws {
9+
// XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
10+
// let spy0 = spies[0]
11+
//
12+
// Text("Root")
13+
// .sheet(isPresented: .constant(true)) {
14+
// Text("Sheet")
15+
// .introspect(
16+
// .sheet,
17+
// on: .iOS(.v13, .v14, .v15, .v16, .v17), .tvOS(.v13, .v14, .v15, .v16, .v17),
18+
// customize: spy0
19+
// )
20+
// }
21+
// }
22+
// }
23+
//
24+
// func testSheetAsSheetPresentationController() throws {
25+
// guard #available(iOS 15, tvOS 15, *) else {
26+
// throw XCTSkip()
27+
// }
28+
//
29+
// XCTAssertViewIntrospection(of: UISheetPresentationController.self) { spies in
30+
// let spy0 = spies[0]
31+
//
32+
// Text("Root")
33+
// .sheet(isPresented: .constant(true)) {
34+
// Text("Sheet")
35+
// .introspect(
36+
// .sheet,
37+
// on: .iOS(.v15, .v16, .v17),
38+
// customize: spy0
39+
// )
40+
// }
41+
// }
42+
// }
43+
// #elseif os(tvOS)
44+
// func testSheet() throws {
45+
// throw XCTSkip("FIXME: this test doesn't pass for some reason, even though introspection works in the Showcase app")
46+
//
47+
// XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
48+
// let spy0 = spies[0]
49+
//
50+
// Text("Root")
51+
// .sheet(isPresented: .constant(true)) {
52+
// Text("Content")
53+
// .introspect(
54+
// .sheet,
55+
// on: .tvOS(.v13, .v14, .v15, .v16, .v17),
56+
// customize: spy0
57+
// )
58+
// }
59+
// }
60+
// }
61+
// #elseif os(visionOS)
62+
// func testSheet() throws {
63+
// XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
64+
// let spy0 = spies[0]
65+
//
66+
// Text("Root")
67+
// .sheet(isPresented: .constant(true)) {
68+
// Text("Sheet")
69+
// .introspect(
70+
// .sheet,
71+
// on: .visionOS(.v1),
72+
// customize: spy0
73+
// )
74+
// }
75+
// }
76+
// }
77+
// #endif
78+
//}
79+
//#endif

0 commit comments

Comments
 (0)