Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Keep the window tests' windows off the window server

Țugui Dragoș8e3d748621de
diff --git a/PeelTests/FloorConstraintsTests.swift b/PeelTests/FloorConstraintsTests.swift
index afc91fe6..f736c462 100644
--- a/PeelTests/FloorConstraintsTests.swift
+++ b/PeelTests/FloorConstraintsTests.swift
@@ -7,7 +7,7 @@ struct FloorConstraintsTests {
private func window() -> NSWindow {
let window = NSWindow(
contentRect: NSRect(x: 0, y: 0, width: 1400, height: 900),
- styleMask: [.titled, .resizable, .fullSizeContentView], backing: .buffered, defer: false
+ styleMask: [.titled, .resizable, .fullSizeContentView], backing: .buffered, defer: true
)
window.contentView = NSView()
return window
diff --git a/PeelTests/ListColumnTests.swift b/PeelTests/ListColumnTests.swift
index 74e965bc..67695a51 100644
--- a/PeelTests/ListColumnTests.swift
+++ b/PeelTests/ListColumnTests.swift
@@ -24,7 +24,7 @@ struct ListColumnTests {
[sidebar, list, page].forEach(controller.addSplitViewItem)
let window = NSWindow(
contentRect: NSRect(x: 0, y: 0, width: 1307, height: 800),
- styleMask: [.titled, .resizable, .fullSizeContentView], backing: .buffered, defer: false
+ styleMask: [.titled, .resizable, .fullSizeContentView], backing: .buffered, defer: true
)
window.contentViewController = controller
window.setContentSize(NSSize(width: 1307, height: 800))