| 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.browser.browser; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'package:stack_trace/stack_trace.dart'; | 8 import 'package:stack_trace/stack_trace.dart'; |
| 11 | 9 |
| 12 import '../../utils.dart'; | 10 import '../../utils.dart'; |
| 13 import '../application_exception.dart'; | 11 import '../application_exception.dart'; |
| 14 | 12 |
| 15 typedef Future<Process> StartBrowserFn(); | 13 typedef Future<Process> StartBrowserFn(); |
| 16 | 14 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 /// Returns the same [Future] as [onExit], except that it won't emit | 110 /// Returns the same [Future] as [onExit], except that it won't emit |
| 113 /// exceptions. | 111 /// exceptions. |
| 114 Future close() { | 112 Future close() { |
| 115 _closed = true; | 113 _closed = true; |
| 116 _process.then((process) => process.kill()); | 114 _process.then((process) => process.kill()); |
| 117 | 115 |
| 118 // Swallow exceptions. The user should explicitly use [onExit] for these. | 116 // Swallow exceptions. The user should explicitly use [onExit] for these. |
| 119 return onExit.catchError((_) {}); | 117 return onExit.catchError((_) {}); |
| 120 } | 118 } |
| 121 } | 119 } |
| OLD | NEW |