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

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

Issue 12082024: Use named arguments for messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 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
« no previous file with comments | « tests/compiler/dart2js/erroneous_element_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/part_of_test.dart
diff --git a/tests/compiler/dart2js/part_of_test.dart b/tests/compiler/dart2js/part_of_test.dart
index 54c0bc945b464ddd6d2d5c23d1047ec2ec8db5c6..d80b8dc25a1cc23303c9e78462ce15de88d6d737 100644
--- a/tests/compiler/dart2js/part_of_test.dart
+++ b/tests/compiler/dart2js/part_of_test.dart
@@ -32,6 +32,6 @@ void main() {
Expect.equals(1, compiler.warnings.length);
Expect.equals(MessageKind.LIBRARY_NAME_MISMATCH,
compiler.warnings[0].message.kind);
- Expect.equals("${MessageKind.LIBRARY_NAME_MISMATCH.error(['foo'])}",
- compiler.warnings[0].message.toString());
+ Expect.equals('foo',
+ compiler.warnings[0].message.arguments['libraryName'].toString());
}
« no previous file with comments | « tests/compiler/dart2js/erroneous_element_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698