| 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; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:path/path.dart' as p; | 7 import 'package:path/path.dart' as p; |
| 10 | 8 |
| 11 import 'src/backend/declarer.dart'; | 9 import 'src/backend/declarer.dart'; |
| 12 import 'src/backend/test_platform.dart'; | 10 import 'src/backend/test_platform.dart'; |
| 13 import 'src/frontend/timeout.dart'; | 11 import 'src/frontend/timeout.dart'; |
| 14 import 'src/runner/engine.dart'; | 12 import 'src/runner/engine.dart'; |
| 15 import 'src/runner/reporter/expanded.dart'; | 13 import 'src/runner/reporter/expanded.dart'; |
| 16 import 'src/runner/runner_suite.dart'; | 14 import 'src/runner/runner_suite.dart'; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 /// prefer [tearDown], and only use [tearDOwnAll] if the callback is | 236 /// prefer [tearDown], and only use [tearDOwnAll] if the callback is |
| 239 /// prohibitively slow. | 237 /// prohibitively slow. |
| 240 void tearDownAll(callback()) => _declarer.tearDownAll(callback); | 238 void tearDownAll(callback()) => _declarer.tearDownAll(callback); |
| 241 | 239 |
| 242 /// Registers an exception that was caught for the current test. | 240 /// Registers an exception that was caught for the current test. |
| 243 void registerException(error, [StackTrace stackTrace]) { | 241 void registerException(error, [StackTrace stackTrace]) { |
| 244 // This will usually forward directly to [Invoker.current.handleError], but | 242 // This will usually forward directly to [Invoker.current.handleError], but |
| 245 // going through the zone API allows other zones to consistently see errors. | 243 // going through the zone API allows other zones to consistently see errors. |
| 246 Zone.current.handleUncaughtError(error, stackTrace); | 244 Zone.current.handleUncaughtError(error, stackTrace); |
| 247 } | 245 } |
| OLD | NEW |