OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// Modify this file to include more tests. | 5 /// Modify this file to include more tests. |
6 library fletch_tests.debugger; | 6 library fletch_tests.debugger; |
7 | 7 |
8 import 'dart:async' show | 8 import 'dart:async' show |
9 Stream, | 9 Stream, |
10 Future; | 10 Future; |
11 | 11 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 return listTestsInternal(false); | 136 return listTestsInternal(false); |
137 } | 137 } |
138 | 138 |
139 main(List<String> args) async { | 139 main(List<String> args) async { |
140 args = args.map((a) => 'debugger/$a'); | 140 args = args.map((a) => 'debugger/$a'); |
141 Map<String, NoArgFuture> tests = await listTestsInternal(true); | 141 Map<String, NoArgFuture> tests = await listTestsInternal(true); |
142 for (String name in tests.keys) { | 142 for (String name in tests.keys) { |
143 if (args.isEmpty || args.contains(name)) await tests[name](); | 143 if (args.isEmpty || args.contains(name)) await tests[name](); |
144 } | 144 } |
145 } | 145 } |
OLD | NEW |