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

Unified Diff: tests/corelib/list_removeat_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/list_removeat_test.dart
diff --git a/tests/corelib/list_removeat_test.dart b/tests/corelib/list_removeat_test.dart
index ba7acf2c760ca45da496477ce97c80067ad3babd..7010678a735d4d012fe461373c72bf373c5ed2f8 100644
--- a/tests/corelib/list_removeat_test.dart
+++ b/tests/corelib/list_removeat_test.dart
@@ -17,15 +17,15 @@ void main() {
(e) => e is IndexOutOfRangeException,
"too large");
Expect.throws(() { l1.removeAt(null); },
- (e) => e is IllegalArgumentException,
+ (e) => e is ArgumentError,
"too large");
Expect.throws(() { l1.removeAt("1"); },
(e) => (checkedMode ? e is TypeError
- : e is IllegalArgumentException),
+ : e is ArgumentError),
"string");
Expect.throws(() { l1.removeAt(1.5); },
(e) => (checkedMode ? e is TypeError
- : e is IllegalArgumentException),
+ : e is ArgumentError),
"double");
Expect.equals(2, l1.removeAt(2), "l1-remove2");

Powered by Google App Engine
This is Rietveld 408576698