| 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', () {
|
|
|