| 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 test; | 5 library test; |
| 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'; | |
| 13 import 'src/backend/suite.dart'; | 12 import 'src/backend/suite.dart'; |
| 14 import 'src/backend/test_platform.dart'; | 13 import 'src/backend/test_platform.dart'; |
| 15 import 'src/frontend/timeout.dart'; | 14 import 'src/frontend/timeout.dart'; |
| 16 import 'src/runner/reporter/expanded.dart'; | 15 import 'src/runner/reporter/expanded.dart'; |
| 17 import 'src/utils.dart'; | 16 import 'src/utils.dart'; |
| 18 | 17 |
| 19 export 'package:matcher/matcher.dart'; | 18 export 'package:matcher/matcher.dart'; |
| 20 | 19 |
| 21 export 'src/frontend/expect.dart'; | 20 export 'src/frontend/expect.dart'; |
| 22 export 'src/frontend/expect_async.dart'; | 21 export 'src/frontend/expect_async.dart'; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 /// group. [callback] will be run before any tear-down callbacks in parent | 170 /// group. [callback] will be run before any tear-down callbacks in parent |
| 172 /// groups or at the top level. | 171 /// groups or at the top level. |
| 173 void tearDown(callback()) => _declarer.tearDown(callback); | 172 void tearDown(callback()) => _declarer.tearDown(callback); |
| 174 | 173 |
| 175 /// Registers an exception that was caught for the current test. | 174 /// Registers an exception that was caught for the current test. |
| 176 void registerException(error, [StackTrace stackTrace]) { | 175 void registerException(error, [StackTrace stackTrace]) { |
| 177 // This will usually forward directly to [Invoker.current.handleError], but | 176 // This will usually forward directly to [Invoker.current.handleError], but |
| 178 // going through the zone API allows other zones to consistently see errors. | 177 // going through the zone API allows other zones to consistently see errors. |
| 179 Zone.current.handleUncaughtError(error, stackTrace); | 178 Zone.current.handleUncaughtError(error, stackTrace); |
| 180 } | 179 } |
| OLD | NEW |