2014-09-25 17:04:46 -04:00
|
|
|
// Karma configuration
|
|
|
|
// Generated on Thu Sep 25 2014 11:52:02 GMT-0700 (PDT)
|
2014-09-28 16:55:01 -04:00
|
|
|
var file2moduleName = require('./file2modulename');
|
2014-09-25 17:04:46 -04:00
|
|
|
|
|
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
|
|
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
|
|
|
|
files: [
|
|
|
|
'node_modules/traceur/bin/traceur-runtime.js',
|
|
|
|
'modules/**/test_lib/**/*.es6',
|
|
|
|
'modules/**/*.js',
|
|
|
|
'modules/**/*.es6',
|
2014-09-28 16:55:01 -04:00
|
|
|
'tools/transpiler/spec/**/*.js',
|
|
|
|
'tools/transpiler/spec/**/*.es6',
|
|
|
|
'file2modulename.js',
|
2014-09-25 17:04:46 -04:00
|
|
|
'test-main.js'
|
|
|
|
],
|
|
|
|
|
|
|
|
preprocessors: {
|
|
|
|
'modules/**/*.js': ['traceur'],
|
2014-09-28 16:55:01 -04:00
|
|
|
'modules/**/*.es6': ['traceur'],
|
|
|
|
'tools/transpiler/**/*.js': ['traceur'],
|
|
|
|
'tools/transpiler/**/*.es6': ['traceur'],
|
2014-09-25 17:04:46 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
traceurPreprocessor: {
|
|
|
|
options: {
|
|
|
|
outputLanguage: 'es5',
|
|
|
|
script: false,
|
|
|
|
modules: 'register',
|
|
|
|
types: true,
|
2014-09-26 20:36:57 -04:00
|
|
|
typeAssertions: true,
|
|
|
|
typeAssertionModule: 'rtts_assert/rtts_assert',
|
2014-09-25 17:04:46 -04:00
|
|
|
annotations: true
|
|
|
|
},
|
2014-09-28 16:55:01 -04:00
|
|
|
resolveModuleName: file2moduleName,
|
2014-09-25 17:04:46 -04:00
|
|
|
transformPath: function(fileName) {
|
|
|
|
return fileName.replace('.es6', '');
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
customLaunchers: {
|
|
|
|
DartiumWithWebPlatform: {
|
|
|
|
base: 'Dartium',
|
|
|
|
flags: ['--enable-experimental-web-platform-features'] }
|
|
|
|
},
|
|
|
|
browsers: ['DartiumWithWebPlatform'],
|
2014-09-25 17:04:46 -04:00
|
|
|
});
|
|
|
|
|
2014-09-26 20:39:27 -04:00
|
|
|
config.plugins.push(require('./tools/transpiler/karma-traceur-preprocessor'));
|
2014-09-25 17:04:46 -04:00
|
|
|
};
|