| Index: tests/lib/mirrors/to_string_test.dart
|
| ===================================================================
|
| --- tests/lib/mirrors/to_string_test.dart (revision 30026)
|
| +++ tests/lib/mirrors/to_string_test.dart (working copy)
|
| @@ -24,8 +24,9 @@
|
| expect("InstanceMirror on 1", reflect(1));
|
| expect("ClassMirror on 'Foo'", reflectClass(Foo));
|
| expect("VariableMirror on 'field'",
|
| - reflectClass(Foo).variables.values.single);
|
| - expect("MethodMirror on 'method'", reflectClass(Foo).methods.values.single);
|
| + reflectClass(Foo).declarations[#field]);
|
| + expect("MethodMirror on 'method'",
|
| + reflectClass(Foo).declarations[#method]);
|
| String s = reflect(main).toString();
|
| Expect.isTrue(s.startsWith("ClosureMirror on '"), s);
|
| }
|
|
|