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

Unified Diff: tests/lib/mirrors/reflect_uninstantiated_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/reflect_runtime_type_test.dart ('k') | tests/lib/mirrors/regress_14304_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/reflect_uninstantiated_class_test.dart
diff --git a/tests/lib/mirrors/reflect_uninstantiated_class_test.dart b/tests/lib/mirrors/reflect_uninstantiated_class_test.dart
index 15479b57beb51d54e418cf26ac6f2785abcb5f82..1a2b8e964474924df5f7baa61003ab1eae416106 100644
--- a/tests/lib/mirrors/reflect_uninstantiated_class_test.dart
+++ b/tests/lib/mirrors/reflect_uninstantiated_class_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_runtime_type_test.dart ('k') | tests/lib/mirrors/regress_14304_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698