Skip to content

Commit 491fd8a

Browse files
committed
add --IE11 test-jasmine CLI opt
1 parent a37ed66 commit 491fd8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/jasmine/karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ var constants = require('../../tasks/util/constants');
77
var isCI = !!process.env.CIRCLECI;
88
var argv = minimist(process.argv.slice(4), {
99
string: ['bundleTest', 'width', 'height'],
10-
'boolean': ['info', 'nowatch', 'failFast', 'verbose', 'Chrome', 'Firefox'],
10+
'boolean': ['info', 'nowatch', 'failFast', 'verbose', 'Chrome', 'Firefox', 'IE11'],
1111
alias: {
1212
'Chrome': 'chrome',
1313
'Firefox': ['firefox', 'FF'],
14+
'IE11': ['ie11'],
1415
'bundleTest': ['bundletest', 'bundle_test'],
1516
'nowatch': 'no-watch',
1617
'failFast': 'fail-fast'
@@ -54,6 +55,7 @@ if(argv.info) {
5455
' - `--info`: show this info message',
5556
' - `--Chrome` (alias `--chrome`): run test in (our custom) Chrome browser',
5657
' - `--Firefox` (alias `--FF`, `--firefox`): run test in (our custom) Firefox browser',
58+
' - `--IE11` (alias -- `ie11`)`: run test in IE11 browser',
5759
' - `--nowatch (dflt: `false`, `true` on CI)`: run karma w/o `autoWatch` / multiple run mode',
5860
' - `--failFast` (dflt: `false`): exit karma upon first test failure',
5961
' - `--verbose` (dflt: `false`): show test result using verbose reporter',
@@ -302,6 +304,7 @@ func.defaultConfig.files.push(testFileGlob);
302304
var browsers = func.defaultConfig.browsers;
303305
if(argv.Chrome) browsers.push('_Chrome');
304306
if(argv.Firefox) browsers.push('_Firefox');
307+
if(argv.IE11) browsers.push('IE');
305308
if(browsers.length === 0) browsers.push('_Chrome');
306309

307310
module.exports = func;

0 commit comments

Comments
 (0)