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

Unified Diff: tests/standalone/io/socket_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/standalone/io/socket_exception_test.dart
diff --git a/tests/standalone/io/socket_exception_test.dart b/tests/standalone/io/socket_exception_test.dart
index 67f4ef4f098e1ca35c6d11c9e8d9db56a0f4c649..46d6c13de17c719e74ca889c4992a7a132c01b78 100644
--- a/tests/standalone/io/socket_exception_test.dart
+++ b/tests/standalone/io/socket_exception_test.dart
@@ -128,7 +128,7 @@ class SocketExceptionTest {
try {
List<int> buffer = new List<int>(10);
client.readList(buffer, -1, 1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -140,7 +140,7 @@ class SocketExceptionTest {
try {
List<int> buffer = new List<int>(10);
client.readList(buffer, 0, -1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -152,7 +152,7 @@ class SocketExceptionTest {
try {
List<int> buffer = new List<int>(10);
client.writeList(buffer, -1, 1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;
@@ -164,7 +164,7 @@ class SocketExceptionTest {
try {
List<int> buffer = new List<int>(10);
client.writeList(buffer, 0, -1);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exceptionCaught = true;
} on Exception catch (ex) {
wrongExceptionCaught = true;

Powered by Google App Engine
This is Rietveld 408576698