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