OLD | NEW |
1 // Karma configuration | 1 // Karma configuration |
2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) | 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) |
3 | 3 |
4 module.exports = function(config) { | 4 module.exports = function(config) { |
5 config.set({ | 5 config.set({ |
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'], | 12 frameworks: ['mocha'], |
13 | 13 |
14 // mocha setup | 14 // mocha setup |
15 client: { | 15 client: { |
16 mocha: { | 16 mocha: { |
17 ui: 'bdd', | 17 ui: 'bdd', |
18 checkLeaks: true, | 18 checkLeaks: true, |
19 globals: ['net', 'scrolled', 'oCursor', 'availableWidth', 'topNotUsableS
ize', | 19 globals: ['net', 'scrolled', 'oCursor', 'availableWidth', 'topNotUsableS
ize', |
20 'xLabelWidth', 'nblab', 'bottomNotUsableHeightWithoutXLabels', | 20 'xLabelWidth', 'nblab', 'bottomNotUsableHeightWithoutXLabels', |
21 'bottomNotUsableHeightWithXLabels', 'availableHeight', 'clrx', 'clrw
idth', | 21 'bottomNotUsableHeightWithXLabels', 'availableHeight', 'clrx', 'clrw
idth', |
22 'clry', 'clrheight'] | 22 'clry', 'clrheight', 'fmtYLabel', 'lgtxt', 'lgtxt2'] |
23 }, | 23 }, |
24 captureConsole: true | 24 captureConsole: true |
25 }, | 25 }, |
26 | 26 |
27 // list of files / patterns to load in the browser | 27 // list of files / patterns to load in the browser |
28 files: [ | 28 files: [ |
29 // dependencies | 29 // dependencies |
30 'bower_components/platform/platform.js', | 30 'bower_components/platform/platform.js', |
31 'test/karma-loader.html', | 31 'test/karma-loader.html', |
32 'bower_components/chai/chai.js', | 32 'bower_components/chai/chai.js', |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Continuous Integration mode | 82 // Continuous Integration mode |
83 // if true, Karma captures browsers, runs the tests and exits | 83 // if true, Karma captures browsers, runs the tests and exits |
84 singleRun: false, | 84 singleRun: false, |
85 | 85 |
86 plugins: [ | 86 plugins: [ |
87 'karma-mocha', | 87 'karma-mocha', |
88 'karma-chrome-launcher' | 88 'karma-chrome-launcher' |
89 ] | 89 ] |
90 }); | 90 }); |
91 }; | 91 }; |
OLD | NEW |