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

Unified Diff: tests/compiler/dart2js/message_kind_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 | « runtime/tests/vm/dart/mirrored_compilation_error_test.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/message_kind_test.dart
diff --git a/tests/compiler/dart2js/message_kind_test.dart b/tests/compiler/dart2js/message_kind_test.dart
index 6610e125cbd2bdc4d4d6dbb99ddc7b86d533b426..505fe5b3da594e8c447dc6f672a703f0fd1dd02c 100644
--- a/tests/compiler/dart2js/message_kind_test.dart
+++ b/tests/compiler/dart2js/message_kind_test.dart
@@ -16,7 +16,9 @@ import 'dart:mirrors';
main() {
ClassMirror cls = reflectClass(MessageKind);
Map<String, MessageKind> kinds = <String, MessageKind>{};
- cls.variables.forEach((Symbol name, VariableMirror variable) {
+ cls.declarations.forEach((Symbol name, DeclarationMirror declaration) {
+ if (declaration is! VariableMirror) return;
+ VariableMirror variable = declaration;
if (variable.isStatic) {
var value = cls.getField(name).reflectee;
if (value is MessageKind) {
« no previous file with comments | « runtime/tests/vm/dart/mirrored_compilation_error_test.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698