OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import 'package:compiler/implementation/dart2jslib.dart' show | 8 import 'package:compiler/src/dart2jslib.dart' show |
9 DualKind, | 9 DualKind, |
10 MessageKind; | 10 MessageKind; |
11 | 11 |
12 import 'message_kind_helper.dart'; | 12 import 'message_kind_helper.dart'; |
13 | 13 |
14 import 'dart:mirrors'; | 14 import 'dart:mirrors'; |
15 | 15 |
16 main(List<String> arguments) { | 16 main(List<String> arguments) { |
17 ClassMirror cls = reflectClass(MessageKind); | 17 ClassMirror cls = reflectClass(MessageKind); |
18 Map<String, MessageKind> kinds = <String, MessageKind>{}; | 18 Map<String, MessageKind> kinds = <String, MessageKind>{}; |
(...skipping 30 matching lines...) Expand all Loading... |
49 asyncTest(() => Future.forEach(examples, (String name) { | 49 asyncTest(() => Future.forEach(examples, (String name) { |
50 print("Checking '$name'."); | 50 print("Checking '$name'."); |
51 Stopwatch sw = new Stopwatch()..start(); | 51 Stopwatch sw = new Stopwatch()..start(); |
52 return check(kinds[name], cachedCompiler).then((var compiler) { | 52 return check(kinds[name], cachedCompiler).then((var compiler) { |
53 cachedCompiler = compiler; | 53 cachedCompiler = compiler; |
54 sw.stop(); | 54 sw.stop(); |
55 print("Checked '$name' in ${sw.elapsedMilliseconds}ms."); | 55 print("Checked '$name' in ${sw.elapsedMilliseconds}ms."); |
56 }); | 56 }); |
57 })); | 57 })); |
58 } | 58 } |
OLD | NEW |