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

Unified Diff: tests/lib/mirrors/generic_type_mirror_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
Index: tests/lib/mirrors/generic_type_mirror_test.dart
diff --git a/tests/lib/mirrors/generic_type_mirror_test.dart b/tests/lib/mirrors/generic_type_mirror_test.dart
index 145415e24ed05748817ec888b2e2fce3d73ae906..e48892f6b8bde2f3b58c95adf8b0bd941b407125 100644
--- a/tests/lib/mirrors/generic_type_mirror_test.dart
+++ b/tests/lib/mirrors/generic_type_mirror_test.dart
@@ -23,13 +23,13 @@ void testInstance() {
ClassMirror bar = reflect(new Bar()).type;
ClassMirror baz = reflect(new Baz()).type;
ClassMirror hOfBaz = reflect(new H<Baz>()).type;
- VariableMirror field = foo.variables.values.single;
- MethodMirror getter = foo.getters.values.single;
- MethodMirror setter = foo.setters.values.single;
- MethodMirror m = foo.methods[const Symbol('m')];
- MethodMirror n = foo.methods[const Symbol('n')];
- MethodMirror o = foo.methods[const Symbol('o')];
- MethodMirror p = foo.methods[const Symbol('p')];
+ VariableMirror field = foo.declarations[#field];
+ MethodMirror getter = foo.declarations[#bar];
+ MethodMirror setter = foo.declarations[const Symbol('bar=')];
+ MethodMirror m = foo.declarations[#m];
+ MethodMirror n = foo.declarations[#n];
+ MethodMirror o = foo.declarations[#o];
+ MethodMirror p = foo.declarations[#p];
Expect.equals(foo, field.owner);
Expect.equals(foo, getter.owner);
@@ -55,13 +55,13 @@ void testInstance() {
void testOriginalDeclaration() {
ClassMirror foo = reflectClass(Foo);
- VariableMirror field = foo.variables.values.single;
- MethodMirror getter = foo.getters.values.single;
- MethodMirror setter = foo.setters.values.single;
- MethodMirror m = foo.methods[const Symbol('m')];
- MethodMirror n = foo.methods[const Symbol('n')];
- MethodMirror o = foo.methods[const Symbol('o')];
- MethodMirror p = foo.methods[const Symbol('p')];
+ VariableMirror field = foo.declarations[#field];
+ MethodMirror getter = foo.declarations[#bar];
+ MethodMirror setter = foo.declarations[const Symbol('bar=')];
+ MethodMirror m = foo.declarations[#m];
+ MethodMirror n = foo.declarations[#n];
+ MethodMirror o = foo.declarations[#o];
+ MethodMirror p = foo.declarations[#p];
TypeVariableMirror w = foo.typeVariables[0];
TypeVariableMirror v = foo.typeVariables[1];
« no previous file with comments | « tests/lib/mirrors/generic_function_typedef_test.dart ('k') | tests/lib/mirrors/generics_substitution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698