Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: tests/lib/mirrors/to_string_test.dart

Issue 64793003: Update mirror tests for removed API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/mirrors/static_test.dart ('k') | tests/lib/mirrors/type_variable_owner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/to_string_test.dart
diff --git a/tests/lib/mirrors/to_string_test.dart b/tests/lib/mirrors/to_string_test.dart
index b553caa6cd83f6fbc029cf9601ff6681fe63cb9c..8344bc4de7fa245445f2b7bd9b7af4b832f6c6eb 100644
--- a/tests/lib/mirrors/to_string_test.dart
+++ b/tests/lib/mirrors/to_string_test.dart
@@ -24,8 +24,9 @@ main() {
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);
}
« no previous file with comments | « tests/lib/mirrors/static_test.dart ('k') | tests/lib/mirrors/type_variable_owner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698