| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * @license | |
| 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
| 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt | |
| 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt | |
| 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt | |
| 7 * Code distributed by Google as part of the polymer project is also | |
| 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt | |
| 9 */ | |
| 10 | |
| 11 module.exports = function(config) { | |
| 12 config.set({ | |
| 13 frameworks: [ 'mocha' ] | |
| 14 , files: [ | |
| 15 'build/build.js' | |
| 16 , 'test/bootstrap/karma.js' | |
| 17 , 'test/*.js' | |
| 18 ] | |
| 19 , reporters: [ 'progress' ] | |
| 20 , colors: true | |
| 21 , logLevel: config.LOG_INFO | |
| 22 , autoWatch: false | |
| 23 , browsers: [ 'PhantomJS' ] | |
| 24 , browserDisconnectTimeout: 10000 | |
| 25 , browserDisconnectTolerance: 2 | |
| 26 , browserNoActivityTimeout: 20000 | |
| 27 , singleRun: true | |
| 28 }); | |
| 29 | |
| 30 switch (process.env.CHAI_TEST_ENV) { | |
| 31 case 'sauce': | |
| 32 require('./karma.sauce')(config); | |
| 33 break; | |
| 34 default: | |
| 35 // ... | |
| 36 break; | |
| 37 }; | |
| 38 }; | |
| OLD | NEW |