OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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'; | 9 import 'dart:mirrors'; |
10 import 'mirrors_reader.dart'; | 10 import 'mirrors_reader.dart'; |
(...skipping 26 matching lines...) Expand all Loading... | |
37 } | 37 } |
38 if (mirrorSystemType == '_LocalMirrorSystem') { | 38 if (mirrorSystemType == '_LocalMirrorSystem') { |
39 // VM mirror system. | 39 // VM mirror system. |
40 } else if (mirrorSystemType == 'JsMirrorSystem') { | 40 } else if (mirrorSystemType == 'JsMirrorSystem') { |
41 // Dart2js runtime mirror system. | 41 // Dart2js runtime mirror system. |
42 } | 42 } |
43 return false; | 43 return false; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 void main(List<String> arguments) { | 47 void main([List<String> arguments = const <String>[]]) { |
Johnni Winther
2014/02/07 11:11:02
Dartium tests don't support required arguments.
| |
48 MirrorSystem mirrors = currentMirrorSystem(); | 48 MirrorSystem mirrors = currentMirrorSystem(); |
49 MirrorsReader reader = new RuntimeMirrorsReader(mirrors, | 49 MirrorsReader reader = new RuntimeMirrorsReader(mirrors, |
50 verbose: arguments.contains('-v'), | 50 verbose: arguments.contains('-v'), |
51 includeStackTrace: arguments.contains('-s')); | 51 includeStackTrace: arguments.contains('-s')); |
52 reader.checkMirrorSystem(mirrors); | 52 reader.checkMirrorSystem(mirrors); |
53 } | 53 } |
OLD | NEW |