@@ -36,7 +36,7 @@ suite('selenium', function() {
36
36
37
37
this . timeout ( 180000 ) ;
38
38
39
- var firefoxStableBinaryPath , firefoxBetaBinaryPath , firefoxNightlyBinaryPath , chromeBinaryPath ;
39
+ var firefoxStableBinaryPath , firefoxBetaBinaryPath , firefoxAuroraBinaryPath , firefoxNightlyBinaryPath , chromeBinaryPath ;
40
40
var server , driver ;
41
41
42
42
function runTest ( params ) {
@@ -46,6 +46,10 @@ suite('selenium', function() {
46
46
} else if ( params . browser === 'firefox-beta' ) {
47
47
params . browser = 'firefox' ;
48
48
firefoxBinaryPath = firefoxBetaBinaryPath ;
49
+ } else if ( params . browser === 'firefox-aurora' ) {
50
+ params . browser = 'firefox' ;
51
+ firefoxBinaryPath = firefoxAuroraBinaryPath ;
52
+ process . env . SELENIUM_MARIONETTE = true ;
49
53
}
50
54
51
55
process . env . SELENIUM_BROWSER = params . browser ;
@@ -92,11 +96,6 @@ suite('selenium', function() {
92
96
93
97
driver . get ( 'http://127.0.0.1:' + server . port ) ;
94
98
95
- driver . executeScript ( function ( port ) {
96
- serverAddress = 'http://127.0.0.1:' + port ;
97
- go ( ) ;
98
- } , server . port ) ;
99
-
100
99
return driver . wait ( webdriver . until . titleIs ( params . payload ? params . payload : 'no payload' ) , 60000 ) ;
101
100
} ) ;
102
101
}
@@ -122,6 +121,14 @@ suite('selenium', function() {
122
121
123
122
promises . push ( seleniumInit . downloadFirefoxBeta ( ) ) ;
124
123
124
+ /*if (process.platform === 'linux') {
125
+ firefoxAuroraBinaryPath = 'test_tools/aurora/firefox/firefox-bin';
126
+ } else if (process.platform === 'darwin') {
127
+ firefoxAuroraBinaryPath = 'test_tools/aurora/Firefox.app/Contents/MacOS/firefox-bin';
128
+ }
129
+
130
+ promises.push(seleniumInit.downloadFirefoxAurora());*/
131
+
125
132
if ( process . platform === 'linux' ) {
126
133
firefoxNightlyBinaryPath = 'test_tools/firefox/firefox-bin' ;
127
134
} else if ( process . platform === 'darwin' ) {
@@ -154,8 +161,9 @@ suite('selenium', function() {
154
161
155
162
try {
156
163
console . log ( 'Using Firefox: ' + firefoxStableBinaryPath ) ;
157
- console . log ( 'Version: ' + childProcess . execSync ( firefoxStableBinaryPath + ' --version' ) ) ;
158
- console . log ( 'Beta Version: ' + childProcess . execSync ( firefoxBetaBinaryPath + ' --version' ) ) ;
164
+ console . log ( 'Version: ' + childProcess . execSync ( firefoxStableBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
165
+ console . log ( 'Beta Version: ' + childProcess . execSync ( firefoxBetaBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
166
+ console . log ( 'Aurora Version: ' + childProcess . execSync ( firefoxAuroraBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
159
167
} catch ( e ) { }
160
168
161
169
if ( process . env . GCM_API_KEY && ! fs . existsSync ( chromeBinaryPath ) ) {
@@ -164,7 +172,7 @@ suite('selenium', function() {
164
172
165
173
try {
166
174
console . log ( 'Using Chromium: ' + chromeBinaryPath ) ;
167
- console . log ( 'Version: ' + childProcess . execSync ( chromeBinaryPath + ' --version' ) ) ;
175
+ console . log ( 'Version: ' + childProcess . execSync ( chromeBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
168
176
} catch ( e ) { }
169
177
} ) ;
170
178
} ) ;
0 commit comments