@@ -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 ;
@@ -90,11 +94,6 @@ suite('selenium', function() {
90
94
91
95
driver . get ( 'http://127.0.0.1:' + server . port ) ;
92
96
93
- driver . executeScript ( function ( port ) {
94
- serverAddress = 'http://127.0.0.1:' + port ;
95
- go ( ) ;
96
- } , server . port ) ;
97
-
98
97
return driver . wait ( webdriver . until . titleIs ( params . payload ? params . payload : 'no payload' ) , 60000 ) ;
99
98
} ) ;
100
99
}
@@ -120,6 +119,14 @@ suite('selenium', function() {
120
119
121
120
promises . push ( seleniumInit . downloadFirefoxBeta ( ) ) ;
122
121
122
+ /*if (process.platform === 'linux') {
123
+ firefoxAuroraBinaryPath = 'test_tools/aurora/firefox/firefox-bin';
124
+ } else if (process.platform === 'darwin') {
125
+ firefoxAuroraBinaryPath = 'test_tools/aurora/Firefox.app/Contents/MacOS/firefox-bin';
126
+ }
127
+
128
+ promises.push(seleniumInit.downloadFirefoxAurora());*/
129
+
123
130
if ( process . platform === 'linux' ) {
124
131
firefoxNightlyBinaryPath = 'test_tools/firefox/firefox-bin' ;
125
132
} else if ( process . platform === 'darwin' ) {
@@ -152,8 +159,9 @@ suite('selenium', function() {
152
159
153
160
try {
154
161
console . log ( 'Using Firefox: ' + firefoxStableBinaryPath ) ;
155
- console . log ( 'Version: ' + childProcess . execSync ( firefoxStableBinaryPath + ' --version' ) ) ;
156
- console . log ( 'Beta Version: ' + childProcess . execSync ( firefoxBetaBinaryPath + ' --version' ) ) ;
162
+ console . log ( 'Version: ' + childProcess . execSync ( firefoxStableBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
163
+ console . log ( 'Beta Version: ' + childProcess . execSync ( firefoxBetaBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
164
+ console . log ( 'Aurora Version: ' + childProcess . execSync ( firefoxAuroraBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
157
165
} catch ( e ) { }
158
166
159
167
if ( process . env . GCM_API_KEY && ! fs . existsSync ( chromeBinaryPath ) ) {
@@ -162,7 +170,7 @@ suite('selenium', function() {
162
170
163
171
try {
164
172
console . log ( 'Using Chromium: ' + chromeBinaryPath ) ;
165
- console . log ( 'Version: ' + childProcess . execSync ( chromeBinaryPath + ' --version' ) ) ;
173
+ console . log ( 'Version: ' + childProcess . execSync ( chromeBinaryPath + ' --version' ) . replace ( '\n' , '' ) ) ;
166
174
} catch ( e ) { }
167
175
} ) ;
168
176
} ) ;
0 commit comments