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

Unified Diff: pkg/unittest/test/matchers_test.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://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 11bdcc2261d4f2dea1b7706e333e06f7aa612daf..69aa98f1d368768c991a2c9e3e221c28fd788a27 100644
--- a/pkg/unittest/test/matchers_test.dart
+++ b/pkg/unittest/test/matchers_test.dart
@@ -155,15 +155,15 @@ void main() {
"NullPointerException.");
});
- test('throwsUnsupportedOperationException', () {
- shouldPass(() { throw new UnsupportedOperationException(''); },
- throwsUnsupportedOperationException);
+ test('throwsStateError', () {
+ shouldPass(() { throw new StateError(''); },
+ throwsStateError);
shouldFail(() { throw new Exception(); },
- throwsUnsupportedOperationException,
+ throwsStateError,
"Expected: throws an exception which matches "
- "UnsupportedOperationException "
+ "StateError "
"but: exception <Exception> does not match "
- "UnsupportedOperationException.");
+ "StateError.");
});
test('returnsNormally', () {

Powered by Google App Engine
This is Rietveld 408576698