Files
proxycast/electron/mainWindowOptions.test.ts
coso d3f25cbd24 chore: release 1.177.0
Land the TUI side-conversation snapshot pane and macOS default-microphone voice dictation, align remaining command coverage, and include the pending workspace changes for release validation.
2026-11-14 13:00:11 +08:00

28 lines
855 B
TypeScript

import { describe, expect, it } from "vitest";
import {
buildMainWindowChromeOptions,
buildMainWindowStartupOptions,
} from "./mainWindowOptions";
describe("main window chrome options", () => {
it("主窗口应先隐藏并使用稳定底色,等待正式界面首帧后再显示", () => {
expect(buildMainWindowStartupOptions()).toEqual({
backgroundColor: "#fcfcfc",
show: false,
});
});
it("macOS 主窗口隐藏系统标题栏并保留红绿灯按钮", () => {
expect(buildMainWindowChromeOptions("darwin")).toEqual({
titleBarStyle: "hiddenInset",
trafficLightPosition: { x: 16, y: 15 },
});
});
it("非 macOS 平台沿用系统默认窗口 chrome", () => {
expect(buildMainWindowChromeOptions("win32")).toEqual({});
expect(buildMainWindowChromeOptions("linux")).toEqual({});
});
});