Skip to content

Commit 8fb2e38

Browse files
committed
Revert "[WIP] test(nsview): add more ci-compatible nsview-tests"
This reverts commit a8ca3ac.
1 parent 26e915d commit 8fb2e38

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

Tests/SnapshotTestingTests/SnapshotTestingTests.swift

+1-17
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ final class SnapshotTestingTests: XCTestCase {
249249
button.frame.size = .init(width: 84, height: 32)
250250
assertSnapshot(
251251
matching: button,
252-
as: .image(windowForDrawing: .ci)
252+
as: .image(windowForDrawing: .init(backingScaleFactor: 1, colorSpace: .genericRGB))
253253
)
254254
assertSnapshot(matching: button, as: .recursiveDescription)
255255
#endif
@@ -269,22 +269,6 @@ final class SnapshotTestingTests: XCTestCase {
269269
#endif
270270
}
271271

272-
func testNSViewWithLayerCICompatible() {
273-
#if os(macOS)
274-
let view = NSView()
275-
view.frame = CGRect(x: 0.0, y: 0.0, width: 10.0, height: 10.0)
276-
view.wantsLayer = true
277-
view.layer?.backgroundColor = NSColor.green.cgColor
278-
view.layer?.cornerRadius = 5
279-
view.appearance = NSAppearance(named: .aqua)
280-
assertSnapshot(
281-
matching: view,
282-
as: .image(windowForDrawing: .ci)
283-
)
284-
assertSnapshot(matching: view, as: .recursiveDescription)
285-
#endif
286-
}
287-
288272
func testPrecision() {
289273
#if os(iOS) || os(macOS) || os(tvOS)
290274
#if os(iOS) || os(tvOS)

Tests/SnapshotTestingTests/__Snapshots__/SnapshotTestingTests/testNSViewWithLayerCICompatible.2.txt

-2
This file was deleted.

0 commit comments

Comments
 (0)