| 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 harmony_flags = '--js-flags="' + [ | 5 var harmony_flags = '--js-flags="' + [ |
| 6 '--harmony', | 6 '--harmony', |
| 7 ].join(' ') + '"'; | 7 ].join(' ') + '"'; |
| 8 | 8 |
| 9 var configuration = { | 9 var configuration = { |
| 10 | 10 |
| 11 // base path that will be used to resolve all patterns (eg. files, exclude) | 11 // base path that will be used to resolve all patterns (eg. files, exclude) |
| 12 basePath: '', | 12 basePath: '', |
| 13 | 13 |
| 14 // frameworks to use | 14 // frameworks to use |
| 15 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | 15 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 16 frameworks: ['mocha', 'requirejs', 'chai'], | 16 frameworks: ['mocha', 'requirejs', 'chai'], |
| 17 | 17 |
| 18 // list of files / patterns to load in the browser | 18 // list of files / patterns to load in the browser |
| 19 files: [ | 19 files: [ |
| 20 'lib/runtime/dart_*.js', | 20 'lib/runtime/dart_*.js', |
| 21 'lib/runtime/_*.js', | 21 'lib/runtime/_*.js', |
| 22 'lib/runtime/dart/*.js', | 22 'lib/runtime/dart/*.js', |
| 23 // {pattern: 'test/browser/*.js', included: false} | 23 // {pattern: 'test/browser/*.js', included: false} |
| 24 'test/codegen/expect/async_helper/async_helper.js', |
| 25 'test/codegen/expect/dom/dom.js', |
| 26 'test/codegen/expect/expect/expect.js', |
| 27 'test/codegen/expect/unittest/unittest.js', |
| 28 'test/codegen/expect/syncstar_syntax.js', |
| 29 'test/codegen/expect/language/*.js', |
| 24 'test/browser/*.js', | 30 'test/browser/*.js', |
| 25 'test-main.js', | 31 'test-main.js', |
| 26 ], | 32 ], |
| 27 | 33 |
| 28 // list of files to exclude | 34 // list of files to exclude |
| 29 exclude: [ | 35 exclude: [ |
| 30 ], | 36 ], |
| 31 | 37 |
| 32 // preprocess matching files before serving them to the browser | 38 // preprocess matching files before serving them to the browser |
| 33 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor | 39 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 singleRun: false, | 93 singleRun: false, |
| 88 }; | 94 }; |
| 89 | 95 |
| 90 if (process.env.TRAVIS) { | 96 if (process.env.TRAVIS) { |
| 91 configuration.browsers = ['chrome_canary_travis']; | 97 configuration.browsers = ['chrome_canary_travis']; |
| 92 configuration.autoWatch = false; | 98 configuration.autoWatch = false; |
| 93 } | 99 } |
| 94 | 100 |
| 95 config.set(configuration); | 101 config.set(configuration); |
| 96 }; | 102 }; |
| OLD | NEW |