File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,20 @@ var getGemini = function(options) {
53
53
} ,
54
54
gridUrl : 'http://127.0.0.1:4444/wd/hub' ,
55
55
screenshotsDir : options . gridScreenshotsDir ,
56
- browsers : {
56
+ windowSize : '1024x768'
57
+ }
58
+
59
+ if ( ! options . geminiOptions . browsers || ! Object . keys ( options . geminiOptions . browsers ) . length ) {
60
+ geminiOptions . browsers = {
57
61
"chrome-latest" : {
58
62
desiredCapabilities : {
59
63
browserName : 'chrome' ,
60
64
version : '37.0'
61
65
}
62
66
}
63
- } ,
64
- windowSize : '1024x768'
67
+ } ;
65
68
}
69
+
66
70
geminiOptions = _ . merge ( geminiOptions , options . geminiOptions ) ;
67
71
68
72
return new Gemini ( geminiOptions ) ;
@@ -113,7 +117,7 @@ module.exports.test = function(options) {
113
117
var test = function ( file , enc , callback ) {
114
118
115
119
var gemini = getGemini ( options ) ;
116
-
120
+
117
121
// Run test server
118
122
runTestServer ( options . testServer ) ;
119
123
You can’t perform that action at this time.
0 commit comments