-
Notifications
You must be signed in to change notification settings - Fork 56
/
config.unittest.ts
38 lines (30 loc) · 1.04 KB
/
config.unittest.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { isWinLocaleChinese } from './util.js'
const isWinChinese = await isWinLocaleChinese()
// for win7/8
export const calcLpszClass = Buffer.from('CalcFrame\0', 'ucs2')
// for win10
// export const calcLpszWindow = Buffer.from('Calculator\0', 'ucs2')
// export const calcLpszWindowNotepad = Buffer.from('Notepad\0', 'ucs2')
export const calcLpszWindow = isWinChinese ? '计算器' : 'Calculator'
export const calcLpszWindowNotepad = isWinChinese ? '无标题 - 记事本' : 'Notepad'
export const calcLpszClassNotepad = Buffer.from('Notepad\0', 'ucs2')
export const calcLpszClassNotepadEdit = Buffer.from('Edit\0', 'ucs2')
export const calcLpszNotepad = 'Notepad'
export const calcLpszNotepadEdit = 'Edit'
/** GitHub CI */
export const githubPrinterNames: string[] = [
'Microsoft Print to PDF',
'Microsoft XPS Document Writer',
]
export const processDataTypes: string[] = [
'RAW',
// 'RAW[FF appended]',
// 'RAW[FF auto]',
// 'NT EMF 1.003',
// 'NT EMF 1.006',
// 'NT EMF 1.007',
// 'NT EMF 1.008',
'NT EMF',
'TEXT',
'XPS2GDI',
]