Skip to content

Commit 4340323

Browse files
committed
plotly#444 specify window size for the karma chrome launcher
1 parent 440f815 commit 4340323

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/jasmine/karma.conf.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ func.defaultConfig = {
6969

7070
// start these browsers
7171
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
72-
browsers: ['Chrome'],
72+
browsers: ['Chrome_WindowSized'],
73+
74+
// custom browser options
75+
customLaunchers: {
76+
Chrome_WindowSized: {
77+
base: 'Chrome',
78+
flags: ['--window-size=1035,617'] // values came from observing default size; all test cases pass with it
79+
}
80+
},
7381

7482
// Continuous Integration mode
7583
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)