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

Unified Diff: pkg/unittest/test/matchers_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: pkg/unittest/test/matchers_test.dart
diff --git a/pkg/unittest/test/matchers_test.dart b/pkg/unittest/test/matchers_test.dart
index cf9d567c65f6bf4c7e1a885001b6f7c3ba05c0c8..0e14bec514cca89850c6581dcbaa333a4af89935 100644
--- a/pkg/unittest/test/matchers_test.dart
+++ b/pkg/unittest/test/matchers_test.dart
@@ -115,14 +115,14 @@ void main() {
"IllegalJSRegExpException.");
});
- test('throwsIndexOutOfRangeException', () {
- shouldPass(() { throw new IndexOutOfRangeException(0); },
- throwsIndexOutOfRangeException);
+ test('throwsRangeError', () {
+ shouldPass(() { throw new RangeError(0); },
+ throwsRangeError);
shouldFail(() { throw new Exception(); },
- throwsIndexOutOfRangeException,
- "Expected: throws an exception which matches IndexOutOfRangeException "
+ throwsRangeError,
+ "Expected: throws an exception which matches RangeError "
"but: exception <Exception> does not match "
- "IndexOutOfRangeException.");
+ "RangeError.");
});
test('throwsNoSuchMethodError', () {

Powered by Google App Engine
This is Rietveld 408576698