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

Unified Diff: tests/corelib/list_removeat_test.dart

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerated html files. Created 8 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 | « tests/corelib/list_remove_range_test.dart ('k') | tests/corelib/list_set_range_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/list_removeat_test.dart
diff --git a/tests/corelib/list_removeat_test.dart b/tests/corelib/list_removeat_test.dart
index 465f2f5e01fdc4ac95a6117b4847f3a40ea8a1bb..d6a9b28bcef238f8b932799636bf0c49ba76765a 100644
--- a/tests/corelib/list_removeat_test.dart
+++ b/tests/corelib/list_removeat_test.dart
@@ -11,10 +11,10 @@ void main() {
// Index must be integer and in range.
Expect.throws(() { l1.removeAt(-1); },
- (e) => e is IndexOutOfRangeException,
+ (e) => e is RangeError,
"negative");
Expect.throws(() { l1.removeAt(5); },
- (e) => e is IndexOutOfRangeException,
+ (e) => e is RangeError,
"too large");
Expect.throws(() { l1.removeAt(null); },
(e) => e is ArgumentError,
@@ -57,6 +57,6 @@ void main() {
// Empty list is not special.
var l4 = [];
Expect.throws(() { l4.removeAt(0); },
- (e) => e is IndexOutOfRangeException,
+ (e) => e is RangeError,
"empty");
}
« no previous file with comments | « tests/corelib/list_remove_range_test.dart ('k') | tests/corelib/list_set_range_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698