| 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_matcher; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:matcher/matcher.dart'; | 7 import 'package:matcher/matcher.dart'; |
| 10 | 8 |
| 11 import '../backend/invoker.dart'; | 9 import '../backend/invoker.dart'; |
| 12 import '../utils.dart'; | 10 import '../utils.dart'; |
| 13 import 'expect.dart'; | 11 import 'expect.dart'; |
| 14 | 12 |
| 15 /// This can be used to match two kinds of objects: | 13 /// This can be used to match two kinds of objects: |
| 16 /// | 14 /// |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 mismatchDescription | 102 mismatchDescription |
| 105 .add('threw ') | 103 .add('threw ') |
| 106 .addDescriptionOf(matchState['exception']); | 104 .addDescriptionOf(matchState['exception']); |
| 107 if (verbose) { | 105 if (verbose) { |
| 108 mismatchDescription.add(' at ').add(matchState['stack'].toString()); | 106 mismatchDescription.add(' at ').add(matchState['stack'].toString()); |
| 109 } | 107 } |
| 110 return mismatchDescription; | 108 return mismatchDescription; |
| 111 } | 109 } |
| 112 } | 110 } |
| 113 } | 111 } |
| OLD | NEW |