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

Unified Diff: tests/language/list_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/string_test.dart ('k') | tests/language/value_range2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/list_test.dart
diff --git a/tests/language/list_test.dart b/tests/language/list_test.dart
index 192b2192ba149011a3b388a5d975ff289d8fcdb8..899c1783920b059f0030a50e8311accbef57f9dc 100644
--- a/tests/language/list_test.dart
+++ b/tests/language/list_test.dart
@@ -48,7 +48,7 @@ class ListTest {
a.forEach(f(element) { Expect.equals(null, element); });
a[1] = 1;
Expect.equals(1, a[1]);
- Expect.throws(() => a[len], (e) => e is IndexOutOfRangeException);
+ Expect.throws(() => a[len], (e) => e is RangeError);
Expect.throws(() {
List a = new List(4);
@@ -58,7 +58,7 @@ class ListTest {
Expect.throws(() {
List a = new List(4);
a.setRange(10, 1, a, 1);
- }, (e) => e is IndexOutOfRangeException);
+ }, (e) => e is RangeError);
a = new List(4);
List b = new List(4);
@@ -101,7 +101,7 @@ class ListTest {
List list = new List();
// We cannot write just 'list.removeLast' due to issue 3769.
Expect.throws(() => list.removeLast(),
- (e) => e is IndexOutOfRangeException);
+ (e) => e is RangeError);
Expect.equals(0, list.length);
}
}
« no previous file with comments | « tests/corelib/string_test.dart ('k') | tests/language/value_range2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698