| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 /// A minimal, dependency-free emulation layer for a subset of the | 5 /// A minimal, dependency-free emulation layer for a subset of the |
| 6 /// unittest/test API used by the language and core library (especially HTML) | 6 /// unittest/test API used by the language and core library (especially HTML) |
| 7 /// tests. | 7 /// tests. |
| 8 /// | 8 /// |
| 9 /// A number of our language and core library tests were written against the | 9 /// A number of our language and core library tests were written against the |
| 10 /// unittest package, which is now deprecated in favor of the new test package. | 10 /// unittest package, which is now deprecated in favor of the new test package. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 /// A wrapper around an expectation function. | 173 /// A wrapper around an expectation function. |
| 174 /// | 174 /// |
| 175 /// This function is passed the actual value and should throw an | 175 /// This function is passed the actual value and should throw an |
| 176 /// [ExpectException] if the value doesn't match the expectation. | 176 /// [ExpectException] if the value doesn't match the expectation. |
| 177 class _Expectation { | 177 class _Expectation { |
| 178 final _ExpectationFunction function; | 178 final _ExpectationFunction function; |
| 179 | 179 |
| 180 _Expectation(this.function); | 180 _Expectation(this.function); |
| 181 } | 181 } |
| OLD | NEW |