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

Unified Diff: tests/corelib/errors_test.dart

Issue 1137233004: Make more use of ArgumentError.value in js_lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « sdk/lib/_internal/compiler/js_lib/js_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/errors_test.dart
diff --git a/tests/corelib/errors_test.dart b/tests/corelib/errors_test.dart
index d5eca35cad6bc2afb10d59ed1dec133a780f8336..edfa7611e7907e0b68390cd0177f5d5dc3ea0963 100644
--- a/tests/corelib/errors_test.dart
+++ b/tests/corelib/errors_test.dart
@@ -13,6 +13,10 @@ main() {
new ArgumentError("message").toString());
Expect.equals("Invalid argument: null",
new ArgumentError.value(null).toString());
+ Expect.equals("Invalid argument: 42",
+ new ArgumentError.value(42).toString());
+ Expect.equals("Invalid argument: \"bad\"",
+ new ArgumentError.value("bad").toString());
Expect.equals("Invalid argument (foo): null",
new ArgumentError.value(null, "foo").toString());
Expect.equals("Invalid argument (foo): 42",
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698