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

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: ADded test expectations. 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
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | runtime/bin/process.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 11bdcc2261d4f2dea1b7706e333e06f7aa612daf..cf9d567c65f6bf4c7e1a885001b6f7c3ba05c0c8 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('throwsUnsupportedError', () {
+ shouldPass(() { throw new UnsupportedError(''); },
+ throwsUnsupportedError);
shouldFail(() { throw new Exception(); },
- throwsUnsupportedOperationException,
+ throwsUnsupportedError,
"Expected: throws an exception which matches "
- "UnsupportedOperationException "
+ "UnsupportedError "
"but: exception <Exception> does not match "
- "UnsupportedOperationException.");
+ "UnsupportedError.");
});
test('returnsNormally', () {
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | runtime/bin/process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698