From 4340323af059be30fa00614ea1c7f3d87894ee06 Mon Sep 17 00:00:00 2001 From: Robert Monfera Date: Tue, 19 Apr 2016 18:22:43 +0200 Subject: [PATCH] #444 specify window size for the karma chrome launcher --- test/jasmine/karma.conf.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/jasmine/karma.conf.js b/test/jasmine/karma.conf.js index 59052714958..73494d5acfa 100644 --- a/test/jasmine/karma.conf.js +++ b/test/jasmine/karma.conf.js @@ -69,7 +69,15 @@ func.defaultConfig = { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['Chrome'], + browsers: ['Chrome_WindowSized'], + + // custom browser options + customLaunchers: { + Chrome_WindowSized: { + base: 'Chrome', + flags: ['--window-size=1035,617'] // values came from observing default size; all test cases pass with it + } + }, // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits