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

Unified Diff: tests/corelib/list_remove_range_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_remove_range_test.dart
diff --git a/tests/corelib/list_remove_range_test.dart b/tests/corelib/list_remove_range_test.dart
index 9358894442b281c46eb9587e853478deef8336d4..b806c9212cba0a0dc58ae8a04aea1bb913c83c4a 100644
--- a/tests/corelib/list_remove_range_test.dart
+++ b/tests/corelib/list_remove_range_test.dart
@@ -48,13 +48,13 @@ void testNegativeIndices() {
expectIOORE(() { list.removeRange(-1, 1); });
Expect.listEquals([1, 2], list);
- // A negative length throws an IllegalArgumentException.
+ // A negative length throws an ArgumentError.
Expect.throws(() { list.removeRange(0, -1); },
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.listEquals([1, 2], list);
Expect.throws(() { list.removeRange(-1, -1); },
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.listEquals([1, 2], list);
// A zero length prevails, and does not throw an exception.

Powered by Google App Engine
This is Rietveld 408576698