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

Unified Diff: tests/standalone/io/file_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/standalone/byte_array_test.dart ('k') | tests/standalone/io/socket_exception_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index e0f2d17d308dec6a2d5b77748f4861d7005de103..02ee65fe5e3713fe6851b98e143dea3692d4ba63 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -872,7 +872,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.readListSync(buffer, 0, 12);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -883,7 +883,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.readListSync(buffer, 6, 6);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -894,7 +894,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.readListSync(buffer, -1, 1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -905,7 +905,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.readListSync(buffer, 0, -1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -916,7 +916,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.writeListSync(buffer, 0, 12);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -927,7 +927,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.writeListSync(buffer, 6, 6);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -938,7 +938,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.writeListSync(buffer, -1, 1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -949,7 +949,7 @@ class FileTest {
try {
List<int> buffer = new List<int>(10);
openedFile.writeListSync(buffer, 0, -1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
« no previous file with comments | « tests/standalone/byte_array_test.dart ('k') | tests/standalone/io/socket_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698