|
1 | 1 | // Tun on full stack traces in errors to help debugging |
2 | 2 | Error.stackTraceLimit=Infinity; |
3 | 3 |
|
4 | | -// Use "register" extension from systemjs. |
5 | | -// That's what Traceur outputs: `System.register()`. |
6 | | -register(System); |
7 | | -cjs(System); |
8 | | - |
9 | 4 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 100; |
10 | 5 |
|
11 | 6 | // Cancel Karma's synchronous start, |
12 | 7 | // we will call `__karma__.start()` later, once all the specs are loaded. |
13 | 8 | __karma__.loaded = function() {}; |
14 | 9 |
|
15 | | -System.baseURL = '/base/'; |
16 | | - |
17 | | -// So that we can import packages like `core/foo`, instead of `core/src/foo`. |
18 | | -System.paths = { |
19 | | - '*': './*.js', |
20 | | - 'benchpress/*': 'dist/js/dev/es5/benchpress/*.js', |
21 | | - 'angular2/*': 'dist/js/dev/es5/angular2/*.js', |
22 | | - 'http/*': 'dist/js/dev/es5/http/*.js', |
23 | | - 'rtts_assert/*': 'dist/js/dev/es5/rtts_assert/*.js', |
24 | | - 'rx': 'node_modules/rx/dist/rx.js' |
25 | | -}; |
| 10 | +System.config({ |
| 11 | + baseURL: '/base/', |
| 12 | + defaultJSExtensions: true, |
| 13 | + paths: { |
| 14 | + 'benchpress/*': 'dist/js/dev/es5/benchpress/*.js', |
| 15 | + 'angular2/*': 'dist/js/dev/es5/angular2/*.js', |
| 16 | + 'http/*': 'dist/js/dev/es5/http/*.js', |
| 17 | + 'rtts_assert/*': 'dist/js/dev/es5/rtts_assert/*.js', |
| 18 | + 'rx': 'node_modules/rx/dist/rx.js' |
| 19 | + } |
| 20 | +}); |
26 | 21 |
|
27 | 22 | // Import all the specs, execute their `main()` method and kick off Karma (Jasmine). |
28 | 23 | System.import('angular2/src/dom/browser_adapter').then(function(browser_adapter) { |
|
0 commit comments