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

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

Issue 1625213003: Update messages, and fix typing in test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months 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 9cd634f9b320ac0478193324993a943c2848541c..a886f42b0a77d12b4f9cdf68bb0e54164564cd7c 100644
--- a/tests/compiler/dart2js/message_kind_test.dart
+++ b/tests/compiler/dart2js/message_kind_test.dart
@@ -14,8 +14,9 @@ import 'message_kind_helper.dart';
main(List<String> arguments) {
List<MessageTemplate> examples = <MessageTemplate>[];
- List allMessageKinds =
- MessageKind.values.toList()..addAll(SharedMessageKind.values);
+ List allMessageKinds = []
+ ..addAll(MessageKind.values)
+ ..addAll(SharedMessageKind.values);
Lasse Reichstein Nielsen 2016/01/25 13:44:01 Wouldn't it be great if we had List.operator+? :)
for (var kind in allMessageKinds) {
if (kind == SharedMessageKind.exampleMessage) continue;

Powered by Google App Engine
This is Rietveld 408576698