Chromium Code Reviews| Index: tests/lib/mirrors/unnamed_library_test.dart |
| diff --git a/tests/lib/mirrors/unnamed_library_test.dart b/tests/lib/mirrors/unnamed_library_test.dart |
| index 1e81eaab1284ae5b7f1d4973bfc114ce4572c471..b967689fd28f1c8368c11c3ae9d25cda5859cae3 100644 |
| --- a/tests/lib/mirrors/unnamed_library_test.dart |
| +++ b/tests/lib/mirrors/unnamed_library_test.dart |
| @@ -8,8 +8,14 @@ import 'dart:mirrors'; |
| import 'package:expect/expect.dart'; |
| -class C {} |
| +class Class {} |
| main() { |
| - Expect.equals(const Symbol(""), reflectClass(C).owner.simpleName); |
| + ClassMirror cm = reflectClass(Class); |
| + LibraryMirror lm = cm.owner; |
| + |
| + Expect.equals('Class', MirrorSystem.getName(cm.simpleName)); |
| + Expect.equals('.Class', MirrorSystem.getName(cm.qualifiedName)); |
|
ahe
2013/10/10 11:47:53
This doesn't make sense to me.
|
| + Expect.equals('', MirrorSystem.getName(lm.simpleName)); |
| + Expect.equals('', MirrorSystem.getName(lm.qualifiedName)); |
| } |