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

Unified Diff: tests/lib/mirrors/private_symbol_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/parameter_test.dart ('k') | tests/lib/mirrors/reflect_class_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/private_symbol_test.dart
diff --git a/tests/lib/mirrors/private_symbol_test.dart b/tests/lib/mirrors/private_symbol_test.dart
index 6b10d802af8adaefaea73fde9deeb91f5628d168..09d8261242ade37b453df661ef320a8cbef861d1 100644
--- a/tests/lib/mirrors/private_symbol_test.dart
+++ b/tests/lib/mirrors/private_symbol_test.dart
@@ -64,37 +64,37 @@ main() {
Expect.equals(#_C, cm.simpleName);
Expect.equals('_C', MirrorSystem.getName(cm.simpleName));
- MethodMirror mm = cm.members[#g];
+ MethodMirror mm = cm.declarations[#g];
Expect.isNotNull(mm);
Expect.isTrue(mm.isGetter);
Expect.equals(#g, mm.simpleName);
Expect.equals('g', MirrorSystem.getName(mm.simpleName));
- mm = cm.members[const Symbol('s=')];
+ mm = cm.declarations[const Symbol('s=')];
Expect.isNotNull(mm);
Expect.isTrue(mm.isSetter);
Expect.equals(const Symbol('s='), mm.simpleName);
Expect.equals('s=', MirrorSystem.getName(mm.simpleName));
- mm = cm.members[#m];
+ mm = cm.declarations[#m];
Expect.isNotNull(mm);
Expect.isTrue(mm.isRegularMethod);
Expect.equals(#m, mm.simpleName);
Expect.equals('m', MirrorSystem.getName(mm.simpleName));
- mm = cm.members[#_g];
+ mm = cm.declarations[#_g];
Expect.isNotNull(mm);
Expect.isTrue(mm.isGetter);
Expect.equals(#_g, mm.simpleName);
Expect.equals('_g', MirrorSystem.getName(mm.simpleName));
- mm = cm.members[MirrorSystem.getSymbol('_s=', libtest)];
+ mm = cm.declarations[MirrorSystem.getSymbol('_s=', libtest)];
Expect.isNotNull(mm);
Expect.isTrue(mm.isSetter);
Expect.equals(MirrorSystem.getSymbol('_s=', libtest), mm.simpleName);
Expect.equals('_s=', MirrorSystem.getName(mm.simpleName));
- mm = cm.members[#_m];
+ mm = cm.declarations[#_m];
Expect.isNotNull(mm);
Expect.isTrue(mm.isRegularMethod);
Expect.equals(#_m, mm.simpleName);
@@ -109,7 +109,7 @@ main() {
Expect.equals(#_F, tdm.simpleName);
Expect.equals('_F', MirrorSystem.getName(tdm.simpleName));
- ParameterMirror pm = (cm.members[#m] as MethodMirror).parameters[0];
+ ParameterMirror pm = (cm.declarations[#m] as MethodMirror).parameters[0];
Expect.equals(#_p, pm.simpleName);
Expect.equals('_p', MirrorSystem.getName(pm.simpleName));
« no previous file with comments | « tests/lib/mirrors/parameter_test.dart ('k') | tests/lib/mirrors/reflect_class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698