OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.runner.environment; | |
6 | |
7 import 'package:async/async.dart'; | 5 import 'package:async/async.dart'; |
8 | 6 |
9 /// The abstract class of environments in which test suites are | 7 /// The abstract class of environments in which test suites are |
10 /// loaded—specifically, browsers and the Dart VM. | 8 /// loaded—specifically, browsers and the Dart VM. |
11 abstract class Environment { | 9 abstract class Environment { |
12 /// The URL of the Dart VM Observatory for this environment, or `null` if this | 10 /// The URL of the Dart VM Observatory for this environment, or `null` if this |
13 /// environment doesn't run the Dart VM or the URL couldn't be detected. | 11 /// environment doesn't run the Dart VM or the URL couldn't be detected. |
14 Uri get observatoryUrl; | 12 Uri get observatoryUrl; |
15 | 13 |
16 /// The URL of the remote debugger for this environment, or `null` if it isn't | 14 /// The URL of the remote debugger for this environment, or `null` if it isn't |
17 /// enabled. | 15 /// enabled. |
18 Uri get remoteDebuggerUrl; | 16 Uri get remoteDebuggerUrl; |
19 | 17 |
20 /// Displays information indicating that the test runner is paused. | 18 /// Displays information indicating that the test runner is paused. |
21 /// | 19 /// |
22 /// The returned operation will complete when the user takes action within the | 20 /// The returned operation will complete when the user takes action within the |
23 /// environment that should unpause the runner. If the runner is unpaused | 21 /// environment that should unpause the runner. If the runner is unpaused |
24 /// elsewhere, the operation should be canceled. | 22 /// elsewhere, the operation should be canceled. |
25 CancelableOperation displayPause(); | 23 CancelableOperation displayPause(); |
26 } | 24 } |
OLD | NEW |