Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/localizations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ test('原生在隔离的三语言 fixture 中读取、格式化、匹配地区
'-framework', 'AppKit', '-framework', 'WebKit', '-framework', 'StoreKit',
path.join(root, 'macos', 'App.swift'), path.join(root, 'tests', 'mac-localization.swift'),
'-o', executable
], { timeout: 60000, maxBuffer: 2 * 1024 * 1024 });
], { timeout: 180000, maxBuffer: 2 * 1024 * 1024 });
const { stdout } = await run(executable, [cases], { timeout: 10000 }).catch(error => {
assert.fail(error.stdout || error.stderr || error.message);
});
Expand Down
2 changes: 1 addition & 1 deletion tests/mac-localization-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test('Mac WK/AppKit 本地化界面保持任务与输出,隔离偏好和剪贴
fs.copyFileSync(path.join(root, file), path.join(resources, file));
}
fs.copyFileSync(path.join(root, 'macos', 'FlashMask.icns'), path.join(resources, 'FlashMask.icns'));
await run('/usr/bin/xcrun', ['swiftc', '-parse-as-library', '-target', `${process.arch === 'arm64' ? 'arm64' : 'x86_64'}-apple-macosx13.0`, '-module-cache-path', path.join(directory, 'module-cache'), '-framework', 'AppKit', '-framework', 'WebKit', '-framework', 'StoreKit', path.join(root, 'macos', 'App.swift'), path.join(root, 'tests', 'mac-localization-ui.swift'), '-o', executable], { timeout: 60000, maxBuffer: 2 * 1024 * 1024 });
await run('/usr/bin/xcrun', ['swiftc', '-parse-as-library', '-target', `${process.arch === 'arm64' ? 'arm64' : 'x86_64'}-apple-macosx13.0`, '-module-cache-path', path.join(directory, 'module-cache'), '-framework', 'AppKit', '-framework', 'WebKit', '-framework', 'StoreKit', path.join(root, 'macos', 'App.swift'), path.join(root, 'tests', 'mac-localization-ui.swift'), '-o', executable], { timeout: 180000, maxBuffer: 2 * 1024 * 1024 });
await run('/usr/bin/codesign', ['--force', '--sign', '-', bundle]);
const args = [fixtures, screenshots];
const emptyOnly = process.env.FLASH_MASK_LOCALIZATION_EMPTY_ONLY === '1';
Expand Down
2 changes: 1 addition & 1 deletion tests/mac-settings-window.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test('设置窗口居中在主窗口上,并完整显示在屏幕可见区域
'-framework', 'AppKit', '-framework', 'WebKit', '-framework', 'StoreKit',
path.join(root, 'macos', 'App.swift'), path.join(root, 'tests', 'mac-settings-window.swift'),
'-o', executable
], { timeout: 60000, maxBuffer: 2 * 1024 * 1024 });
], { timeout: 180000, maxBuffer: 2 * 1024 * 1024 });
const { stdout } = await run(executable, [], { timeout: 10000 }).catch(error => {
assert.fail(error.stdout || error.stderr || error.message);
});
Expand Down
Loading