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

Unified Diff: tests/lib/mirrors/mirrors_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/method_mirror_source_test.dart ('k') | tests/lib/mirrors/mixin_application_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/mirrors_test.dart
diff --git a/tests/lib/mirrors/mirrors_test.dart b/tests/lib/mirrors/mirrors_test.dart
index 2cfde98e225d6d7f462b875bd963da8343e91026..0dead1e45640db6930f11bd7f5c4204c505fa2dd 100644
--- a/tests/lib/mirrors/mirrors_test.dart
+++ b/tests/lib/mirrors/mirrors_test.dart
@@ -91,9 +91,9 @@ testFieldAccess(mirrors) {
var instance = new Class();
var libMirror = mirrors.findLibrary(#MirrorsTest);
- var classMirror = libMirror.classes[#Class];
+ var classMirror = libMirror.declarations[#Class];
var instMirror = reflect(instance);
- var fieldMirror = classMirror.members[#field];
+ var fieldMirror = classMirror.declarations[#field];
var future;
expect(fieldMirror is VariableMirror, isTrue);
@@ -166,10 +166,10 @@ testReflectClass(mirrors) {
testNames(mirrors) {
var libMirror = mirrors.findLibrary(#MirrorsTest);
- var classMirror = libMirror.classes[#Class];
- var typedefMirror = libMirror.members[#Typedef];
- var methodMirror = libMirror.functions[#testNames];
- var variableMirror = classMirror.variables[#field];
+ var classMirror = libMirror.declarations[#Class];
+ var typedefMirror = libMirror.declarations[#Typedef];
+ var methodMirror = libMirror.declarations[#testNames];
+ var variableMirror = classMirror.declarations[#field];
expect(libMirror.simpleName, equals(#MirrorsTest));
expect(libMirror.qualifiedName, equals(#MirrorsTest));
« no previous file with comments | « tests/lib/mirrors/method_mirror_source_test.dart ('k') | tests/lib/mirrors/mixin_application_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698