Index: tests/corelib/range_error_test.dart |
diff --git a/tests/corelib/index_out_of_range_exception_test.dart b/tests/corelib/range_error_test.dart |
similarity index 89% |
rename from tests/corelib/index_out_of_range_exception_test.dart |
rename to tests/corelib/range_error_test.dart |
index b052a4ba3ad5443b0a3c08ae5982d04f4f2047f7..e83bd30dfb9c453c70e1fe0dc2369c4c4d0b0dfe 100644 |
--- a/tests/corelib/index_out_of_range_exception_test.dart |
+++ b/tests/corelib/range_error_test.dart |
@@ -4,7 +4,7 @@ |
// Dart test for testing out of range exceptions on arrays. |
-class IndexOutOfRangeExceptionTest { |
+class RangeErrorTest { |
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(); |
} |