2026-07-22 16:01:28 +08:00
|
|
|
package ui
|
|
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
|
|
func TestMonitorWindowSpecUsesLightMonitoringLayout(t *testing.T) {
|
|
|
|
|
spec := MonitorWindowSpec()
|
2026-07-22 21:24:10 +08:00
|
|
|
if spec.Title != "Silver Pose V2" {
|
2026-07-22 16:01:28 +08:00
|
|
|
t.Fatalf("title = %q", spec.Title)
|
|
|
|
|
}
|
|
|
|
|
if spec.Width != 1120 || spec.Height != 720 {
|
|
|
|
|
t.Fatalf("size = %dx%d, want 1120x720", spec.Width, spec.Height)
|
|
|
|
|
}
|
2026-07-22 21:24:10 +08:00
|
|
|
if spec.BackgroundHex != "#EAF1F8" || spec.AlertHex != "#C62828" {
|
2026-07-22 16:01:28 +08:00
|
|
|
t.Fatalf("unexpected colours: background=%s alert=%s", spec.BackgroundHex, spec.AlertHex)
|
|
|
|
|
}
|
|
|
|
|
}
|