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

Unified Diff: tests/corelib/index_out_of_range_exception_test.dart

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/index_out_of_range_exception_test.dart
diff --git a/tests/corelib/index_out_of_range_exception_test.dart b/tests/corelib/index_out_of_range_exception_test.dart
index b052a4ba3ad5443b0a3c08ae5982d04f4f2047f7..e83bd30dfb9c453c70e1fe0dc2369c4c4d0b0dfe 100644
--- a/tests/corelib/index_out_of_range_exception_test.dart
+++ b/tests/corelib/index_out_of_range_exception_test.dart
@@ -4,7 +4,7 @@
// Dart test for testing out of range exceptions on arrays.
-class IndexOutOfRangeExceptionTest {
+class RangeErrorTest {
floitsch 2012/10/25 14:31:38 rename test?
Lasse Reichstein Nielsen 2012/10/26 11:30:22 File renamed.
static testRead() {
testListRead([], 0);
testListRead([], -1);
@@ -52,7 +52,7 @@ class IndexOutOfRangeExceptionTest {
var exception = null;
try {
var e = list[index];
- } on IndexOutOfRangeException catch (e) {
+ } on RangeError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -62,7 +62,7 @@ class IndexOutOfRangeExceptionTest {
var exception = null;
try {
list[index] = null;
- } on IndexOutOfRangeException catch (e) {
+ } on RangeError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -70,5 +70,5 @@ class IndexOutOfRangeExceptionTest {
}
main() {
- IndexOutOfRangeExceptionTest.testMain();
+ RangeErrorTest.testMain();
}

Powered by Google App Engine
This is Rietveld 408576698