Skip to content

Commit 84196d7

Browse files
committed
Remove CHROME env variable
1 parent 02d45c7 commit 84196d7

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

test/testSelenium.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,14 @@ suite('selenium', function() {
131131
promises.push(seleniumInit.downloadFirefoxNightly());
132132

133133
if (process.env.GCM_API_KEY) {
134-
chromeBinaryPath = process.env.CHROME;
135-
if (chromeBinaryPath === 'nightly') {
136-
if (process.platform === 'linux') {
137-
chromeBinaryPath = 'test_tools/chrome-linux/chrome';
138-
} else if (process.platform === 'darwin') {
139-
chromeBinaryPath = 'test_tools/chrome-mac/Chromium.app/Contents/MacOS/Chromium';
140-
}
141-
142-
promises.push(seleniumInit.downloadChromiumNightly());
143-
} else if (chromeBinaryPath === 'all') {
144-
// TODO: Download Chromium release.
145-
chromeBinaryPath = childProcess.execSync('which chromium-browser').toString().replace('\n', '');
134+
if (process.platform === 'linux') {
135+
chromeBinaryPath = 'test_tools/chrome-linux/chrome';
136+
} else if (process.platform === 'darwin') {
137+
chromeBinaryPath = 'test_tools/chrome-mac/Chromium.app/Contents/MacOS/Chromium';
146138
}
147139

140+
promises.push(seleniumInit.downloadChromiumNightly());
141+
148142
promises.push(seleniumInit.downloadChromeDriver());
149143
}
150144

0 commit comments

Comments
 (0)