OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This is a helper for run.sh. We try to run all of the Dart code in one | 6 * This is a helper for run.sh. We try to run all of the Dart code in one |
7 * instance of the Dart VM to reduce warm-up time. | 7 * instance of the Dart VM to reduce warm-up time. |
8 */ | 8 */ |
9 library run_impl; | 9 library run_impl; |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 if (pattern.hasMatch('analyzer_test.dart')) analyzer_test.main(); | 27 if (pattern.hasMatch('analyzer_test.dart')) analyzer_test.main(); |
28 if (pattern.hasMatch('emitter_test.dart')) emitter_test.main(); | 28 if (pattern.hasMatch('emitter_test.dart')) emitter_test.main(); |
29 if (pattern.hasMatch('utils_test.dart')) utils_test.main(); | 29 if (pattern.hasMatch('utils_test.dart')) utils_test.main(); |
30 if (pattern.hasMatch('watcher_test.dart')) watcher_test.main(); | 30 if (pattern.hasMatch('watcher_test.dart')) watcher_test.main(); |
31 | 31 |
32 // TODO(jmesserly): should have listSync for scripting... | 32 // TODO(jmesserly): should have listSync for scripting... |
33 var lister = new Directory.fromPath(new Path('data/input')).list(); | 33 var lister = new Directory.fromPath(new Path('data/input')).list(); |
34 lister.onFile = (path) { | 34 lister.onFile = (path) { |
35 if (!path.endsWith('_test.html') || !pattern.hasMatch(path)) return; | 35 if (!path.endsWith('_test.html') || !pattern.hasMatch(path)) return; |
36 | 36 |
37 test(path, () => dwc.run(['--verbose', path, 'data/output/'])); | 37 test(path, () => expect(dwc.run(['--verbose', path, 'data/output/']), comple
tes)); |
38 }; | 38 }; |
39 } | 39 } |
OLD | NEW |