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

Unified Diff: tests/corelib/expando_test.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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/corelib/expando_test.dart
diff --git a/tests/corelib/expando_test.dart b/tests/corelib/expando_test.dart
index f64fdc4509ad30a472bb05b74b371a96a7033822..7e006be083262d9e84126089d985cfb61c8ee7df 100644
--- a/tests/corelib/expando_test.dart
+++ b/tests/corelib/expando_test.dart
@@ -64,17 +64,17 @@ class ExpandoTest {
Expect.throws(() => expando[null], (exception)
=> exception is NullPointerException);
Expect.throws(() => expando['string'], (exception)
- => exception is IllegalArgumentException);
+ => exception is ArgumentError);
Expect.throws(() => expando['string'], (exception)
- => exception is IllegalArgumentException);
+ => exception is ArgumentError);
Expect.throws(() => expando[42], (exception)
- => exception is IllegalArgumentException);
+ => exception is ArgumentError);
Expect.throws(() => expando[42.87], (exception)
- => exception is IllegalArgumentException);
+ => exception is ArgumentError);
Expect.throws(() => expando[true], (exception)
- => exception is IllegalArgumentException);
+ => exception is ArgumentError);
Expect.throws(() => expando[false], (exception)
- => exception is IllegalArgumentException);
+ => exception is ArgumentError);
}
}

Powered by Google App Engine
This is Rietveld 408576698