Skip to content

Commit 86e0303

Browse files
committed
set window size when running jasmine tests in FF
1 parent 133d71b commit 86e0303

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/jasmine/karma.ciconf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function func(config) {
3333

3434
func.defaultConfig.autoWatch = false;
3535

36-
func.defaultConfig.browsers = ['Firefox'];
36+
func.defaultConfig.browsers = ['Firefox_WindowSized'];
3737

3838
config.set(func.defaultConfig);
3939
}

test/jasmine/karma.conf.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,15 @@ func.defaultConfig = {
8282
browsers: ['Chrome_WindowSized'],
8383

8484
// custom browser options
85+
// window-size values came from observing default size
8586
customLaunchers: {
8687
Chrome_WindowSized: {
8788
base: 'Chrome',
88-
// window-size values came from observing default size
8989
flags: ['--window-size=1035,617', '--ignore-gpu-blacklist']
90+
},
91+
Firefox_WindowSized: {
92+
base: 'Firefox',
93+
flags: ['--width=1035', '--height=617']
9094
}
9195
},
9296

0 commit comments

Comments
 (0)