-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser.config.example.hjson
89 lines (86 loc) · 2.68 KB
/
browser.config.example.hjson
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
// Contains groups of flags with variants, use by browsers
flags: {
flag-group-1: {
--js-flags: [
null,
"--max-opt=1",
// "--max-opt=2",
// "--max-opt=4",
],
--enable-fied-trial-config: [
null,
""
]
},
// Define custom flag groups here (referenced by name):
chrome-custom: {
},
// ------------------------------------------------------------------------
// Examples:
example-group-1: {
// This will result in 4 flag configurations that are run:
//
// 1. no flags (both entries have a `null` variant)
// 2. `--js-flags=--no-opt`
// 3. `--js-flags=--no-opt --enable-field-trial-config`
// 4. `--enable-field-trial-config`
--js-flags: [null, "--no-opt"],
--enable-field-trial-config: [null, ""]
},
example-group-2: {
// Use the empty string "" for flags without values
"--enable-fied-trial-config": "",
// A flag with multiple variants:
--js-flags: [
null, // variant 1: null == flag is not set
"--no-opt --no-ic", // variant 2
"--no-sparkplug", // variant 2
]
// Flag with two variants: unset and set
"--no-sandbox": [
null, // variant 1: null ==> flag is not set
"", // variant 2: "" ==> flag is set without value
]
},
},
// --------------------------------------------------------------------------
// Contains browser configs
browsers: {
"chrome-stable": {
// For "path" you can use a path, browser name, or a versioned browser.
// See '--browser' option for all possible values.
path: "chrome-stable",
flags: [
// You can reference multiple flag-groups here, any name added to
// the 'flags' dict above can be used here.
"flag-group-1",
// You can also directly define fixed flags
// "--js-flags=--no-opt",
]
}
},
// You can use either comments or other sections to hide configurations
browsers-disabled: {
"chrome-mac-stable": {
path: "/Applications/Google Chrome.app",
flags: [ /* ... add your flag groups here */ ]
},
"chrome-mac-dev": {
path: "/Applications/Google Chrome Dev.app",
flags: [ /* ... add your flag groups here */ ]
},
"chrome-mac-canary": {
path: "/Applications/Google Chrome Canary.app",
flags: [ /* ... add your flag groups here */ ]
},
"safari-tech-preview": {
path: "/Applications/Safari.app",
flags: [/* ... add your flag groups here */ ],
},
"safari": {
path: "/Applications/Safari Technology Preview.app",
flags: [/* ... add your flag groups here */ ],
},
}
}