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

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: 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/language/value_range_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c2a11652b928b8e8189f5d56198eca4bbd4f6b2d 100644
--- a/tests/standalone/byte_array_test.dart
+++ b/tests/standalone/byte_array_test.dart
@@ -20,7 +20,7 @@ void testCreateByteArray() {
for (int i = 0; i < 10; i++) {
Expect.equals(0, byteArray[i]);
}
-
+
}
void testUnsignedByteArrayRange() {
@@ -31,7 +31,7 @@ void testUnsignedByteArrayRange() {
Expect.equals(255, byteArray[1]);
byteArray[1] = 0;
Expect.equals(0, byteArray[1]);
-
+
Expect.throws(() {
byteArray[1] = 1.2;
});
@@ -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));
« no previous file with comments | « tests/language/value_range_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698