summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/macos_e2e.swift10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/macos_e2e.swift b/test/macos_e2e.swift
index 5efc366c..5f172f9d 100644
--- a/test/macos_e2e.swift
+++ b/test/macos_e2e.swift
@@ -628,8 +628,8 @@ private final class Driver: PardesViewDelegate {
let bottom = kind == 2 && pardes_tag_layer_value(i, 11) != 0
for pixel in 0..<height {
var rgb = pardes_tag_layer_value(i, 10)
- if kind != 0 && pixel == (bottom ? 0 : height - 1) { rgb = 0x475263 }
- if pardes_tag_layer_value(i, 5) == UInt32(PARDES_TOPBAR_H) && pixel == 0 { rgb = 0x475263 }
+ if kind != 0 && (bottom ? pixel <= 1 : pixel >= height - 2) { rgb = 0x606f86 }
+ if pardes_tag_layer_value(i, 5) == UInt32(PARDES_TOPBAR_H) && pixel == 0 { rgb = 0x606f86 }
try check(x: x, y: top + (CGFloat(pixel) + 0.5) / scale,
rgb: rgb, name: "tag \(i), pixel \(pixel)")
}
@@ -656,7 +656,7 @@ private final class Driver: PardesViewDelegate {
guard let c = sample(rep, x: Int(x * scale), y: Int(y * scale)) else {
throw ScriptError(message: "context: no separator pixel")
}
- let rgb: UInt32 = 0x475263 // Forge border, also used by the Linux chrome overlay.
+ let rgb: UInt32 = 0x606f86 // Forge border, also used by the Linux chrome overlay.
guard abs(c.redComponent * 255 - CGFloat((rgb >> 16) & 255)) < 4,
abs(c.greenComponent * 255 - CGFloat((rgb >> 8) & 255)) < 4,
abs(c.blueComponent * 255 - CGFloat(rgb & 255)) < 4,
@@ -1270,6 +1270,10 @@ private func buildWorld(stem: String) throws -> String {
// A wall clock cannot live in a golden. Everything that would print one
// prints fixed characters instead when this is set.
_ = setenv("PARDES_NOTIME", "1", 1)
+ // The scripts speak to a grid that HAS the workspace tag row: the app
+ // hands that row to its native menu bar, but this harness is the
+ // topbar's test bench, so opt back in before pardes_init reads it.
+ _ = setenv("PARDES_WORKSPACE_TAG", "1", 1)
guard fm.changeCurrentDirectoryPath(work) else {
throw ScriptError(message: "could not chdir into \(work)")
}