| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  | // Karma configuration
 | 
					
						
							|  |  |  | // Generated on Thu Sep 25 2014 11:52:02 GMT-0700 (PDT)
 | 
					
						
							| 
									
										
										
										
											2014-12-05 16:26:30 -08:00
										 |  |  | var file2moduleName = require('./tools/build/file2modulename'); | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | module.exports = function(config) { | 
					
						
							|  |  |  |   config.set({ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     frameworks: ['jasmine'], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     files: [ | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  |       // Sources and specs.
 | 
					
						
							|  |  |  |       // Loaded through the es6-module-loader, in `test-main.js`.
 | 
					
						
							|  |  |  |       {pattern: 'modules/**', included: false}, | 
					
						
							| 
									
										
										
										
											2015-02-06 13:36:52 -08:00
										 |  |  |       {pattern: 'tools/transpiler/spec/**', included: false}, | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |       'node_modules/traceur/bin/traceur-runtime.js', | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  |       'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js', | 
					
						
							| 
									
										
										
										
											2014-10-30 18:52:32 +01:00
										 |  |  |       // Including systemjs because it defines `__eval`, which produces correct stack traces.
 | 
					
						
							|  |  |  |       'node_modules/systemjs/dist/system.src.js', | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  |       'node_modules/systemjs/lib/extension-register.js', | 
					
						
							| 
									
										
										
										
											2015-03-24 13:45:39 -07:00
										 |  |  |       'node_modules/systemjs/lib/extension-cjs.js', | 
					
						
							|  |  |  |       'node_modules/rx/dist/rx.all.js', | 
					
						
							| 
									
										
										
										
											2014-12-05 18:30:45 -08:00
										 |  |  |       'node_modules/zone.js/zone.js', | 
					
						
							| 
									
										
										
										
											2014-12-11 11:36:05 -08:00
										 |  |  |       'node_modules/zone.js/long-stack-trace-zone.js', | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-05 16:26:30 -08:00
										 |  |  |       'tools/build/file2modulename.js', | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |       'test-main.js' | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-08 10:02:23 -08:00
										 |  |  |     exclude: [ | 
					
						
							|  |  |  |       'modules/**/e2e_test/**' | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |     preprocessors: { | 
					
						
							|  |  |  |       'modules/**/*.js': ['traceur'], | 
					
						
							| 
									
										
										
										
											2014-09-28 13:55:01 -07:00
										 |  |  |       'modules/**/*.es6': ['traceur'], | 
					
						
							| 
									
										
										
										
											2015-02-06 13:36:52 -08:00
										 |  |  |       'tools/transpiler/spec/**/*.js': ['traceur'], | 
					
						
							|  |  |  |       'tools/transpiler/spec/**/*.es6': ['traceur'], | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     traceurPreprocessor: { | 
					
						
							|  |  |  |       options: { | 
					
						
							|  |  |  |         outputLanguage: 'es5', | 
					
						
							| 
									
										
										
										
											2014-10-30 18:52:32 +01:00
										 |  |  |         sourceMaps: true, | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |         script: false, | 
					
						
							| 
									
										
										
										
											2014-11-07 09:31:51 -08:00
										 |  |  |         memberVariables: true, | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  |         modules: 'instantiate', | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |         types: true, | 
					
						
							| 
									
										
										
										
											2014-09-26 17:36:57 -07:00
										 |  |  |         typeAssertions: true, | 
					
						
							|  |  |  |         typeAssertionModule: 'rtts_assert/rtts_assert', | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |         annotations: true | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2014-09-28 13:55:01 -07:00
										 |  |  |       resolveModuleName: file2moduleName, | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |       transformPath: function(fileName) { | 
					
						
							| 
									
										
										
										
											2014-10-06 17:35:00 -07:00
										 |  |  |         return fileName.replace(/\.es6$/, '.js'); | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-29 14:20:23 -07:00
										 |  |  |     customLaunchers: { | 
					
						
							|  |  |  |       DartiumWithWebPlatform: { | 
					
						
							|  |  |  |         base: 'Dartium', | 
					
						
							| 
									
										
										
										
											2015-04-15 05:14:03 +00:00
										 |  |  |         flags: ['--enable-experimental-web-platform-features'] }, | 
					
						
							|  |  |  |       ChromeNoSandbox: { | 
					
						
							|  |  |  |         base: 'Chrome', | 
					
						
							|  |  |  |         flags: ['--no-sandbox'] } | 
					
						
							| 
									
										
										
										
											2014-09-29 14:20:23 -07:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2014-10-02 13:38:12 -07:00
										 |  |  |     browsers: ['ChromeCanary'], | 
					
						
							| 
									
										
										
										
											2014-10-09 13:50:25 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     port: 9876 | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  |   }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-26 17:39:27 -07:00
										 |  |  |   config.plugins.push(require('./tools/transpiler/karma-traceur-preprocessor')); | 
					
						
							| 
									
										
										
										
											2014-09-25 14:04:46 -07:00
										 |  |  | }; |