| Index: tests/lib/mirrors/mirrors_reader_test.dart
|
| diff --git a/tests/lib/mirrors/mirrors_reader_test.dart b/tests/lib/mirrors/mirrors_reader_test.dart
|
| index 1c69b07928ee73cbf9522572ed53de231b1c20ee..e66c5f0db869cec3ac5ef510aad7dc666e5f5712 100644
|
| --- a/tests/lib/mirrors/mirrors_reader_test.dart
|
| +++ b/tests/lib/mirrors/mirrors_reader_test.dart
|
| @@ -7,16 +7,29 @@
|
| library test.mirrors.reader;
|
|
|
| import 'dart:mirrors';
|
| +import 'package:expect/expect.dart';
|
| import 'mirrors_reader.dart';
|
|
|
| class RuntimeMirrorsReader extends MirrorsReader {
|
| + final MirrorSystem mirrorSystem;
|
| final String mirrorSystemType;
|
|
|
| RuntimeMirrorsReader(MirrorSystem mirrorSystem,
|
| {bool verbose: false, bool includeStackTrace: false})
|
| - : this.mirrorSystemType = '${mirrorSystem.runtimeType}',
|
| + : this.mirrorSystem = mirrorSystem,
|
| + this.mirrorSystemType = '${mirrorSystem.runtimeType}',
|
| super(verbose: verbose, includeStackTrace: includeStackTrace);
|
|
|
| + visitLibraryMirror(LibraryMirror mirror) {
|
| + super.visitLibraryMirror(mirror);
|
| + Expect.equals(mirror, mirrorSystem.libraries[mirror.uri]);
|
| + }
|
| +
|
| + visitClassMirror(ClassMirror mirror) {
|
| + super.visitClassMirror(mirror);
|
| + Expect.isNotNull(mirror.owner);
|
| + }
|
| +
|
| bool allowUnsupported(var receiver, String tag, UnsupportedError exception) {
|
| if (mirrorSystemType == '_LocalMirrorSystem') {
|
| // VM mirror system.
|
|
|