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 c3954f0191ab066c8d12c3ddeae9336a6f200a74..9cd634f9b320ac0478193324993a943c2848541c 100644 |
--- a/tests/compiler/dart2js/message_kind_test.dart |
+++ b/tests/compiler/dart2js/message_kind_test.dart |
@@ -7,13 +7,18 @@ import 'dart:async'; |
import "package:async_helper/async_helper.dart"; |
import 'package:compiler/src/diagnostics/messages.dart' show |
MessageKind, |
- MessageTemplate; |
+ MessageTemplate, |
+ SharedMessageKind; |
import 'message_kind_helper.dart'; |
main(List<String> arguments) { |
List<MessageTemplate> examples = <MessageTemplate>[]; |
- for (MessageKind kind in MessageKind.values) { |
+ List allMessageKinds = |
+ MessageKind.values.toList()..addAll(SharedMessageKind.values); |
+ for (var kind in allMessageKinds) { |
+ if (kind == SharedMessageKind.exampleMessage) continue; |
+ |
MessageTemplate template = MessageTemplate.TEMPLATES[kind]; |
Expect.isNotNull(template, "No template for $kind."); |
Expect.equals(kind, template.kind, |