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

Unified Diff: tests/standalone/byte_array_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/byte_array_test.dart
diff --git a/tests/standalone/byte_array_test.dart b/tests/standalone/byte_array_test.dart
index e23715f5524839b21c2533ce2840bede5c5f35b3..6874ffafb26e537331cbc994b727f0948284ce4d 100644
--- a/tests/standalone/byte_array_test.dart
+++ b/tests/standalone/byte_array_test.dart
@@ -131,7 +131,7 @@ void testSubArray() {
Expect.equals(10, array.subByteArray(0, null).lengthInBytes());
Expect.equals(10, array.subByteArray().lengthInBytes());
testThrowsIndex(function) {
- Expect.throws(function, (e) => e is IndexOutOfRangeException);
+ Expect.throws(function, (e) => e is RangeError);
}
testThrowsIndex(() => array.subByteArray(0, -1));
testThrowsIndex(() => array.subByteArray(1, -1));

Powered by Google App Engine
This is Rietveld 408576698