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

Unified Diff: tests/lib/mirrors/intercepted_class_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/initializing_formals_test.dart ('k') | tests/lib/mirrors/lazy_static_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/intercepted_class_test.dart
diff --git a/tests/lib/mirrors/intercepted_class_test.dart b/tests/lib/mirrors/intercepted_class_test.dart
index 2fde1b71b9e128307f516d205241fb51313cf697..9c820eca37f1d03754e95dcd2c21e93a5ce6e6a7 100644
--- a/tests/lib/mirrors/intercepted_class_test.dart
+++ b/tests/lib/mirrors/intercepted_class_test.dart
@@ -13,8 +13,8 @@ import 'stringify.dart' show stringify, expect;
checkClassMirror(ClassMirror cls, String name) {
expect('s($name)', cls.simpleName);
var variables = new Map();
- cls.variables.forEach((Symbol key, VariableMirror value) {
- if (!value.isStatic && !value.isPrivate) {
+ cls.declarations.forEach((Symbol key, DeclarationMirror value) {
+ if (value is VariableMirror && !value.isStatic && !value.isPrivate) {
variables[key] = value;
}
});
« no previous file with comments | « tests/lib/mirrors/initializing_formals_test.dart ('k') | tests/lib/mirrors/lazy_static_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698