| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
| 6 * A library for writing dart unit tests. | 6 * A library for writing dart unit tests. |
| 7 * | 7 * |
| 8 * ## Installing ## | 8 * ## Installing ## |
| 9 * | 9 * |
| 10 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` | 10 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 */ | 166 */ |
| 167 library unittest; | 167 library unittest; |
| 168 | 168 |
| 169 import 'dart:async'; | 169 import 'dart:async'; |
| 170 import 'dart:collection'; | 170 import 'dart:collection'; |
| 171 import 'dart:isolate'; | 171 import 'dart:isolate'; |
| 172 import 'dart:math' show max; | 172 import 'dart:math' show max; |
| 173 import 'matcher.dart'; | 173 import 'matcher.dart'; |
| 174 export 'matcher.dart'; | 174 export 'matcher.dart'; |
| 175 | 175 |
| 176 // TODO(amouravski): We should not need to import mock here, but it's necessary | |
| 177 // to enable dartdoc on the mock library, as it's not picked up normally. | |
| 178 import 'mock.dart'; | |
| 179 | |
| 180 part 'src/config.dart'; | 176 part 'src/config.dart'; |
| 181 part 'src/test_case.dart'; | 177 part 'src/test_case.dart'; |
| 182 | 178 |
| 183 Configuration _config; | 179 Configuration _config; |
| 184 | 180 |
| 185 /** | 181 /** |
| 186 * [Configuration] used by the unittest library. Note that if a | 182 * [Configuration] used by the unittest library. Note that if a |
| 187 * configuration has not been set, calling this getter will create | 183 * configuration has not been set, calling this getter will create |
| 188 * a default configuration. | 184 * a default configuration. |
| 189 */ | 185 */ |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 } | 932 } |
| 937 sb.write(location); | 933 sb.write(location); |
| 938 sb.write(' '); | 934 sb.write(' '); |
| 939 sb.write(position); | 935 sb.write(position); |
| 940 sb.write('\n'); | 936 sb.write('\n'); |
| 941 } | 937 } |
| 942 } | 938 } |
| 943 } | 939 } |
| 944 return sb.toString(); | 940 return sb.toString(); |
| 945 } | 941 } |
| OLD | NEW |