OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library test.runner.browser.browser; |
| 6 |
| 7 import 'dart:async'; |
| 8 |
| 9 /// An interface for running browser instances. |
| 10 /// |
| 11 /// This is intentionally coarse-grained: browsers are controlled primary from |
| 12 /// inside a single tab. Thus this interface only provides support for closing |
| 13 /// the browser and seeing if it closes itself. |
| 14 /// |
| 15 /// Any errors starting or running the browser process are reported through |
| 16 /// [onExit]. |
| 17 abstract class Browser { |
| 18 /// A future that completes when the browser exits. |
| 19 /// |
| 20 /// If there's a problem starting or running the browser, this will complete |
| 21 /// with an error. |
| 22 Future get onExit; |
| 23 |
| 24 /// Kills the browser process. |
| 25 /// |
| 26 /// Returns the same [Future] as [onExit], except that it won't emit |
| 27 /// exceptions. |
| 28 Future close(); |
| 29 } |
OLD | NEW |