| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.frontend.throws_matchers; | |
| 6 | |
| 7 import 'package:matcher/matcher.dart'; | 5 import 'package:matcher/matcher.dart'; |
| 8 | 6 |
| 9 import 'throws_matcher.dart'; | 7 import 'throws_matcher.dart'; |
| 10 | 8 |
| 11 /// A matcher for functions that throw ArgumentError. | 9 /// A matcher for functions that throw ArgumentError. |
| 12 const Matcher throwsArgumentError = const Throws(isArgumentError); | 10 const Matcher throwsArgumentError = const Throws(isArgumentError); |
| 13 | 11 |
| 14 /// A matcher for functions that throw ConcurrentModificationError. | 12 /// A matcher for functions that throw ConcurrentModificationError. |
| 15 const Matcher throwsConcurrentModificationError = | 13 const Matcher throwsConcurrentModificationError = |
| 16 const Throws(isConcurrentModificationError); | 14 const Throws(isConcurrentModificationError); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 35 const Matcher throwsRangeError = const Throws(isRangeError); | 33 const Matcher throwsRangeError = const Throws(isRangeError); |
| 36 | 34 |
| 37 /// A matcher for functions that throw StateError. | 35 /// A matcher for functions that throw StateError. |
| 38 const Matcher throwsStateError = const Throws(isStateError); | 36 const Matcher throwsStateError = const Throws(isStateError); |
| 39 | 37 |
| 40 /// A matcher for functions that throw Exception. | 38 /// A matcher for functions that throw Exception. |
| 41 const Matcher throwsUnimplementedError = const Throws(isUnimplementedError); | 39 const Matcher throwsUnimplementedError = const Throws(isUnimplementedError); |
| 42 | 40 |
| 43 /// A matcher for functions that throw UnsupportedError. | 41 /// A matcher for functions that throw UnsupportedError. |
| 44 const Matcher throwsUnsupportedError = const Throws(isUnsupportedError); | 42 const Matcher throwsUnsupportedError = const Throws(isUnsupportedError); |
| OLD | NEW |