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

Unified Diff: tests/corelib/range_error_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_set_range_test.dart ('k') | tests/corelib/string_base_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « tests/corelib/list_set_range_test.dart ('k') | tests/corelib/string_base_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698