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: ['dart-unittest'],
|
|
|
|
|
|
|
|
files: [
|
2014-09-28 16:55:01 -04:00
|
|
|
{pattern: 'modules/**/*_spec.js', included: true},
|
|
|
|
{pattern: 'modules/*/src/**/*', included: false},
|
|
|
|
{pattern: 'modules/*/test/**/*', included: false},
|
|
|
|
{pattern: 'tools/transpiler/spec/**/*_spec.js', included: true},
|
|
|
|
{pattern: 'tools/transpiler/spec/**/*', included: false},
|
|
|
|
'test-main.dart'
|
2014-09-25 17:04:46 -04:00
|
|
|
],
|
|
|
|
|
|
|
|
karmaDartImports: {
|
|
|
|
guinness: 'package:guinness/guinness_html.dart'
|
|
|
|
},
|
|
|
|
|
|
|
|
preprocessors: {
|
2014-09-28 16:55:01 -04:00
|
|
|
'modules/**/*.js': ['traceur'],
|
|
|
|
'tools/**/*.js': ['traceur']
|
2014-09-25 17:04:46 -04:00
|
|
|
},
|
|
|
|
traceurPreprocessor: {
|
|
|
|
options: {
|
|
|
|
outputLanguage: 'dart',
|
|
|
|
script: false,
|
|
|
|
modules: 'register',
|
|
|
|
types: true,
|
|
|
|
// typeAssertions: true,
|
|
|
|
// typeAssertionModule: 'assert',
|
|
|
|
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('.js', '.dart');
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
browsers: ['Dartium']
|
|
|
|
});
|
|
|
|
|
|
|
|
|
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
|
|
|
};
|