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

Unified Diff: tests/compiler/dart2js/message_kind_test.dart

Issue 588183002: Emit warning on import of dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 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
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 75ad6c8d60da00bd54fcfd7ccb93a267337a987f..368d51b280bb4c06431de145b34b72eb739ab848 100644
--- a/tests/compiler/dart2js/message_kind_test.dart
+++ b/tests/compiler/dart2js/message_kind_test.dart
@@ -21,10 +21,14 @@ main(List<String> arguments) {
VariableMirror variable = declaration;
if (variable.isStatic) {
var value = cls.getField(name).reflectee;
+ String variableName = MirrorSystem.getName(name);
+ if (variableName == 'IMPORT_EXPERIMENTAL_MIRRORS_PADDING') {
+ return;
+ }
if (value is MessageKind) {
- kinds[MirrorSystem.getName(name)] = value;
+ kinds[variableName] = value;
} else {
- Expect.fail("Weird static field: '${MirrorSystem.getName(name)}'.");
+ Expect.fail("Weird static field: '${variableName}'.");
}
}
});

Powered by Google App Engine
This is Rietveld 408576698