| OLD | NEW |
| 1 // Karma configuration | 1 // Karma configuration |
| 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) | 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) |
| 3 | 3 |
| 4 module.exports = function(config) { | 4 module.exports = function(config) { |
| 5 var configuration = { | 5 var configuration = { |
| 6 | 6 |
| 7 // base path that will be used to resolve all patterns (eg. files, exclude) | 7 // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 basePath: '', | 8 basePath: '', |
| 9 | 9 |
| 10 // frameworks to use | 10 // frameworks to use |
| 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 12 frameworks: ['mocha', 'requirejs', 'chai'], | 12 frameworks: ['mocha', 'requirejs', 'chai'], |
| 13 | 13 |
| 14 // list of files / patterns to load in the browser | 14 // list of files / patterns to load in the browser |
| 15 files: [ | 15 files: [ |
| 16 {pattern: 'lib/js/amd/dart_sdk.js', included: false}, | 16 {pattern: 'lib/js/amd/dart_sdk.js', included: false}, |
| 17 {pattern: 'gen/codegen_output/*.js', included: false}, |
| 17 {pattern: 'gen/codegen_output/pkg/*.js', included: false}, | 18 {pattern: 'gen/codegen_output/pkg/*.js', included: false}, |
| 18 {pattern: 'gen/codegen_output/language/**/*.js', included: false}, | 19 {pattern: 'gen/codegen_output/language/**/*.js', included: false}, |
| 19 {pattern: 'gen/codegen_output/corelib/**/*.js', included: false}, | 20 {pattern: 'gen/codegen_output/corelib/**/*.js', included: false}, |
| 20 {pattern: 'gen/codegen_output/lib/**/*.js', included: false}, | 21 {pattern: 'gen/codegen_output/lib/**/*.js', included: false}, |
| 21 {pattern: 'gen/codegen_tests/lib/**/*.txt', included: false}, | 22 {pattern: 'gen/codegen_tests/lib/**/*.txt', included: false}, |
| 22 {pattern: 'test/browser/*.js', included: false}, | 23 {pattern: 'test/browser/*.js', included: false}, |
| 23 {pattern: 'node_modules/is_js/*.js', included: false}, | 24 {pattern: 'node_modules/is_js/*.js', included: false}, |
| 24 'test-main.js', | 25 'test-main.js', |
| 25 ], | 26 ], |
| 26 | 27 |
| 27 // list of files to exclude | 28 // list of files to exclude |
| 28 exclude: [], | 29 exclude: [], |
| 29 | 30 |
| 30 // preprocess matching files before serving them to the browser | 31 // preprocess matching files before serving them to the browser |
| 31 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor | 32 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor |
| 32 preprocessors: { | 33 preprocessors: { |
| 33 }, | 34 }, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // configuration.logLevel = config.LOG_DEBUG; | 96 // configuration.logLevel = config.LOG_DEBUG; |
| 96 configuration.client.captureConsole = true; | 97 configuration.client.captureConsole = true; |
| 97 } | 98 } |
| 98 | 99 |
| 99 if (process.env.DDC_BROWSERS) { | 100 if (process.env.DDC_BROWSERS) { |
| 100 configuration.browsers = process.env.DDC_BROWSERS.split(':'); | 101 configuration.browsers = process.env.DDC_BROWSERS.split(':'); |
| 101 } | 102 } |
| 102 | 103 |
| 103 config.set(configuration); | 104 config.set(configuration); |
| 104 }; | 105 }; |
| OLD | NEW |