Chromium Code Reviews| 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(); |
| } |