OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// The possible outcomes from running a test. | 5 /// The possible outcomes from running a test. |
6 class Expectation { | 6 class Expectation { |
7 /// The test completed normally and did what it intended to do. | 7 /// The test completed normally and did what it intended to do. |
8 static final Expectation pass = new Expectation._('Pass'); | 8 static final Expectation pass = new Expectation._('Pass'); |
9 | 9 |
10 /// The process aborted in a way that is not a potential runtime error coming | 10 /// The process aborted in a way that is not a potential runtime error coming |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 return true; | 202 return true; |
203 } | 203 } |
204 outcome = outcome._group; | 204 outcome = outcome._group; |
205 } | 205 } |
206 | 206 |
207 return false; | 207 return false; |
208 } | 208 } |
209 | 209 |
210 String toString() => _name; | 210 String toString() => _name; |
211 } | 211 } |
OLD | NEW |