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

Unified Diff: tests/lib/mirrors/metadata_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/metadata_test.dart
diff --git a/tests/lib/mirrors/metadata_test.dart b/tests/lib/mirrors/metadata_test.dart
index 24998d264d41d41f56453a54ba5156a30567cbb1..2e1c854be28f4e581e533d1916d45fe8cb095b11 100644
--- a/tests/lib/mirrors/metadata_test.dart
+++ b/tests/lib/mirrors/metadata_test.dart
@@ -54,17 +54,17 @@ main() {
ClassMirror myClassMirror = reflectClass(MyClass);
checkMetadata(myClassMirror, [symbol, string]);
LibraryMirror lib = mirrors.findLibrary(#test.metadata_test);
- MethodMirror function = lib.functions[#main];
+ MethodMirror function = lib.declarations[#main];
checkMetadata(function, [symbol, string, symbol]);
- MethodMirror method = myClassMirror.methods[#myMethod];
+ MethodMirror method = myClassMirror.declarations[#myMethod];
checkMetadata(method, [string, symbol, string]);
- method = myClassMirror.methods[#myOtherMethod];
+ method = myClassMirror.declarations[#myOtherMethod];
checkMetadata(method, []);
- VariableMirror xMirror = myClassMirror.variables[#x];
+ VariableMirror xMirror = myClassMirror.declarations[#x];
checkMetadata(xMirror, [hest, hest, symbol]);
- VariableMirror yMirror = myClassMirror.variables[#y];
+ VariableMirror yMirror = myClassMirror.declarations[#y];
checkMetadata(yMirror, []);
// TODO(ahe): Test local functions.
« no previous file with comments | « tests/lib/mirrors/metadata_constructed_constant_test.dart ('k') | tests/lib/mirrors/method_mirror_properties_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698