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

Unified Diff: tests/corelib/string_base_vm_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/corelib/string_base_vm_test.dart
diff --git a/tests/corelib/string_base_vm_test.dart b/tests/corelib/string_base_vm_test.dart
index 87d3a53764578c6f72f4f9614e7af3e74bafde64..be44250b30096eb25643a7e64e838b9d7b0a5292 100644
--- a/tests/corelib/string_base_vm_test.dart
+++ b/tests/corelib/string_base_vm_test.dart
@@ -55,14 +55,14 @@ class StringBaseTest {
bool exception_caught = false;
try {
s.substring(5, 12);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exception_caught = true;
}
Expect.equals(true, exception_caught);
exception_caught = false;
try {
s.substring(5, 4);
- } on IndexOutOfRangeException catch (ex) {
+ } on RangeError catch (ex) {
exception_caught = true;
}
Expect.equals(true, exception_caught);

Powered by Google App Engine
This is Rietveld 408576698