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

Unified Diff: tests/corelib/errors_test.dart

Issue 1460903003: corelib: Do not print value in ArgumentError.notNull (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « sdk/lib/core/errors.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 edfa7611e7907e0b68390cd0177f5d5dc3ea0963..c980d441f3865b786422b9ea427e9593d5bba9e5 100644
--- a/tests/corelib/errors_test.dart
+++ b/tests/corelib/errors_test.dart
@@ -25,9 +25,9 @@ main() {
new ArgumentError.value(42, "foo", "message").toString());
Expect.equals("Invalid argument: message: 42",
new ArgumentError.value(42, null, "message").toString());
- Expect.equals("Invalid argument: Must not be null: null",
+ Expect.equals("Invalid argument(s): Must not be null",
new ArgumentError.notNull().toString());
- Expect.equals("Invalid argument (foo): Must not be null: null",
+ Expect.equals("Invalid argument(s) (foo): Must not be null",
new ArgumentError.notNull("foo").toString());
Expect.equals("RangeError",
« no previous file with comments | « sdk/lib/core/errors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698