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

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: 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 | « pkg/unittest/core_matchers.dart ('k') | runtime/bin/socket_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/matchers_test.dart
diff --git a/pkg/unittest/test/matchers_test.dart b/pkg/unittest/test/matchers_test.dart
index 98aac10ea3a190075aa3139d0fb9d932f121415a..fe400f0189c67a521a770bd58f854f1491871227 100644
--- a/pkg/unittest/test/matchers_test.dart
+++ b/pkg/unittest/test/matchers_test.dart
@@ -125,14 +125,14 @@ void main() {
"IllegalJSRegExpException.");
});
- test('throwsIndexOutOfRangeException', () {
- shouldPass(() { throw new IndexOutOfRangeException(0); },
- throwsIndexOutOfRangeException);
+ test('throwsRangeError', () {
+ shouldPass(() { throw new RangeError.value(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', () {
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | runtime/bin/socket_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698