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 library unittest; | 5 library unittest; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
10 | 10 |
11 import 'src/backend/declarer.dart'; | 11 import 'src/backend/declarer.dart'; |
12 import 'src/backend/invoker.dart'; | 12 import 'src/backend/invoker.dart'; |
13 import 'src/backend/suite.dart'; | 13 import 'src/backend/suite.dart'; |
14 import 'src/deprecated/configuration.dart'; | 14 import 'src/deprecated/configuration.dart'; |
15 import 'src/deprecated/test_case.dart'; | 15 import 'src/deprecated/test_case.dart'; |
16 import 'src/runner/reporter/no_io_compact.dart'; | 16 import 'src/runner/reporter/no_io_compact.dart'; |
17 | 17 |
18 export 'package:matcher/matcher.dart'; | 18 export 'package:matcher/matcher.dart'; |
19 | 19 |
20 export 'src/deprecated/configuration.dart'; | 20 export 'src/deprecated/configuration.dart'; |
21 export 'src/deprecated/simple_configuration.dart'; | 21 export 'src/deprecated/simple_configuration.dart'; |
22 export 'src/deprecated/test_case.dart'; | 22 export 'src/deprecated/test_case.dart'; |
23 export 'src/frontend/expect.dart'; | 23 export 'src/frontend/expect.dart'; |
24 export 'src/frontend/expect_async.dart'; | 24 export 'src/frontend/expect_async.dart'; |
25 export 'src/frontend/future_matchers.dart'; | 25 export 'src/frontend/future_matchers.dart'; |
26 export 'src/frontend/prints_matcher.dart'; | 26 export 'src/frontend/prints_matcher.dart'; |
| 27 export 'src/frontend/test_on.dart'; |
27 export 'src/frontend/throws_matcher.dart'; | 28 export 'src/frontend/throws_matcher.dart'; |
28 export 'src/frontend/throws_matchers.dart'; | 29 export 'src/frontend/throws_matchers.dart'; |
29 | 30 |
30 /// The global declarer. | 31 /// The global declarer. |
31 /// | 32 /// |
32 /// This is used if a test file is run directly, rather than through the runner. | 33 /// This is used if a test file is run directly, rather than through the runner. |
33 Declarer _globalDeclarer; | 34 Declarer _globalDeclarer; |
34 | 35 |
35 /// Gets the declarer for the current scope. | 36 /// Gets the declarer for the current scope. |
36 /// | 37 /// |
(...skipping 106 matching lines...) Loading... |
143 void setSoloTest(int id) {} | 144 void setSoloTest(int id) {} |
144 | 145 |
145 @deprecated | 146 @deprecated |
146 void enableTest(int id) {} | 147 void enableTest(int id) {} |
147 | 148 |
148 @deprecated | 149 @deprecated |
149 void disableTest(int id) {} | 150 void disableTest(int id) {} |
150 | 151 |
151 @deprecated | 152 @deprecated |
152 withTestEnvironment(callback()) => callback(); | 153 withTestEnvironment(callback()) => callback(); |
OLD | NEW |