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

Unified Diff: tests/lib/mirrors/reflect_runtime_type_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/reflect_model_test.dart ('k') | tests/lib/mirrors/reflect_uninstantiated_class_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/reflect_runtime_type_test.dart
diff --git a/tests/lib/mirrors/reflect_runtime_type_test.dart b/tests/lib/mirrors/reflect_runtime_type_test.dart
index c766c2d2f2a5a17994e4135502f3b29d8ab781fb..dbc225a5518de5b073533116dadb98cd70319262 100644
--- a/tests/lib/mirrors/reflect_runtime_type_test.dart
+++ b/tests/lib/mirrors/reflect_runtime_type_test.dart
@@ -20,5 +20,6 @@ main() {
print(field);
}
-Iterable<VariableMirror> publicFields(ClassMirror mirror) =>
- mirror.variables.values.where((x) => !(x.isPrivate || x.isStatic));
+publicFields(ClassMirror mirror) =>
+ mirror.declarations.values.where(
+ (x) => x is VariableMirror && !(x.isPrivate || x.isStatic));
« no previous file with comments | « tests/lib/mirrors/reflect_model_test.dart ('k') | tests/lib/mirrors/reflect_uninstantiated_class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698