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 // Test that everything reachable from a [MirrorSystem] can be accessed. | 5 // Test that everything reachable from a [MirrorSystem] can be accessed. |
6 | 6 |
7 library test.mirrors.reader; | 7 library test.mirrors.reader; |
8 | 8 |
9 import "dart:mirrors" hide SourceLocation; | 9 import "dart:mirrors" hide SourceLocation; |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 main(List<String> arguments) { | 133 main(List<String> arguments) { |
134 asyncTest(() => analyzeUri(Uri.parse('dart:core')). | 134 asyncTest(() => analyzeUri(Uri.parse('dart:core')). |
135 then((MirrorSystem mirrors) { | 135 then((MirrorSystem mirrors) { |
136 MirrorsReader reader = new SourceMirrorsReader(mirrors, | 136 MirrorsReader reader = new SourceMirrorsReader(mirrors, |
137 verbose: arguments.contains('-v'), | 137 verbose: arguments.contains('-v'), |
138 includeStackTrace: arguments.contains('-s')); | 138 includeStackTrace: arguments.contains('-s')); |
139 reader.checkMirrorSystem(mirrors); | 139 reader.checkMirrorSystem(mirrors); |
140 })); | 140 })); |
141 } | 141 } |
OLD | NEW |