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

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

Issue 717103004: Revert "Emit warning on import of dart:mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/compiler/dart2js/message_kind_helper.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('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 368d51b280bb4c06431de145b34b72eb739ab848..75ad6c8d60da00bd54fcfd7ccb93a267337a987f 100644
--- a/tests/compiler/dart2js/message_kind_test.dart
+++ b/tests/compiler/dart2js/message_kind_test.dart
@@ -21,14 +21,10 @@ 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[variableName] = value;
+ kinds[MirrorSystem.getName(name)] = value;
} else {
- Expect.fail("Weird static field: '${variableName}'.");
+ Expect.fail("Weird static field: '${MirrorSystem.getName(name)}'.");
}
}
});
« no previous file with comments | « tests/compiler/dart2js/message_kind_helper.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698