Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: test-main.js

Issue 1092213003: Automated runtime tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Travis support Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « package.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 var allTestFiles = [];
2 var TEST_REGEXP = /(spec|test)\.js$/i;
3
4 var pathToModule = function(path) {
5 return path.replace(/^\/base\//, '').replace(/\.js$/, '');
6 };
7
8 Object.keys(window.__karma__.files).forEach(function(file) {
9 if (TEST_REGEXP.test(file)) {
10 // Normalize paths to RequireJS module names.
11 allTestFiles.push(pathToModule(file));
12 }
13 });
14
15 require.config({
16 // Karma serves files under /base, which is the basePath from your config file
17 baseUrl: '/base',
18
19 // dynamically load all test files
20 deps: allTestFiles,
21
22 // we have to kickoff jasmine, as it is asynchronous
23 callback: window.__karma__.start
24 });
OLDNEW
« no previous file with comments | « package.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698