| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 unittest.state; | 5 library unittest.backend.state; |
| 6 | 6 |
| 7 /// The state of a [LiveTest]. | 7 /// The state of a [LiveTest]. |
| 8 /// | 8 /// |
| 9 /// A test's state is made up of two components, its [status] and its [result]. | 9 /// A test's state is made up of two components, its [status] and its [result]. |
| 10 /// The [status] represents where the test is in its process of running; the | 10 /// The [status] represents where the test is in its process of running; the |
| 11 /// [result] represents the outcome as far as its known. | 11 /// [result] represents the outcome as far as its known. |
| 12 class State { | 12 class State { |
| 13 /// Where the test is in its process of running. | 13 /// Where the test is in its process of running. |
| 14 final Status status; | 14 final Status status; |
| 15 | 15 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 case "error": return Result.error; | 97 case "error": return Result.error; |
| 98 default: | 98 default: |
| 99 throw new ArgumentError('Invalid result name "$name".'); | 99 throw new ArgumentError('Invalid result name "$name".'); |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 const Result._(this.name); | 103 const Result._(this.name); |
| 104 | 104 |
| 105 String toString() => name; | 105 String toString() => name; |
| 106 } | 106 } |
| OLD | NEW |