@@ -30,17 +30,17 @@ module.exports = function(config) {
30
30
] ;
31
31
32
32
let dependencies = process . env . KARMA_TEST_JQUERY ? [ 'node_modules/jquery/dist/jquery.js' ] : [ ] ;
33
- dependencies = dependencies . concat ( [
34
- 'node_modules/angular/angular.js' ,
35
- 'node_modules/angular-animate/angular-animate.js' ,
36
- 'node_modules/angular-aria/angular-aria.js' ,
37
- 'node_modules/angular-messages/angular-messages.js' ,
38
- 'node_modules/angular-sanitize/angular-sanitize.js' ,
39
- 'node_modules/angular-touch/angular-touch.js' ,
40
- 'node_modules/angular-mocks/angular-mocks.js' ,
41
- 'test/angular-material-mocks.js' ,
42
- 'test/angular-material-spec.js'
43
- ] ) ;
33
+ dependencies = dependencies . concat ( [
34
+ 'node_modules/angular/angular.js' ,
35
+ 'node_modules/angular-animate/angular-animate.js' ,
36
+ 'node_modules/angular-aria/angular-aria.js' ,
37
+ 'node_modules/angular-messages/angular-messages.js' ,
38
+ 'node_modules/angular-sanitize/angular-sanitize.js' ,
39
+ 'node_modules/angular-touch/angular-touch.js' ,
40
+ 'node_modules/angular-mocks/angular-mocks.js' ,
41
+ 'test/angular-material-mocks.js' ,
42
+ 'test/angular-material-spec.js'
43
+ ] ) ;
44
44
45
45
const testSrc = process . env . KARMA_TEST_COMPRESSED ? COMPILED_SRC : UNCOMPILED_SRC ;
46
46
@@ -82,12 +82,19 @@ module.exports = function(config) {
82
82
// Start these browsers, currently available:
83
83
// - Chrome
84
84
// - ChromeCanary
85
+ // - ChromeHeadless
85
86
// - Firefox
87
+ // - FirefoxHeadless
86
88
// - Opera (has to be installed with `npm install karma-opera-launcher`)
87
89
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
88
- // - PhantomJS
89
90
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
90
- browsers : [ 'Firefox' , 'Chrome' ] ,
91
+ browsers : [ 'ChromeHeadless' , 'FirefoxHeadless' ] ,
92
+ customLaunchers : {
93
+ FirefoxHeadless : {
94
+ base : 'Firefox' ,
95
+ flags : [ '-headless' ] ,
96
+ } ,
97
+ } ,
91
98
92
99
client : {
93
100
// Do not clear the context as this can cause reload failures with Jasmine
0 commit comments