| 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 unittest.runner.loader; | 5 library unittest.runner.loader; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 | 10 |
| 11 import 'package:path/path.dart' as p; | 11 import 'package:path/path.dart' as p; |
| 12 | 12 |
| 13 import '../backend/suite.dart'; | 13 import '../backend/suite.dart'; |
| 14 import '../runner/test_platform.dart'; | 14 import '../backend/test_platform.dart'; |
| 15 import '../util/dart.dart'; | 15 import '../util/dart.dart'; |
| 16 import '../util/io.dart'; | 16 import '../util/io.dart'; |
| 17 import '../util/remote_exception.dart'; | 17 import '../util/remote_exception.dart'; |
| 18 import '../utils.dart'; | 18 import '../utils.dart'; |
| 19 import 'browser/server.dart'; | 19 import 'browser/server.dart'; |
| 20 import 'load_exception.dart'; | 20 import 'load_exception.dart'; |
| 21 import 'vm/isolate_test.dart'; | 21 import 'vm/isolate_test.dart'; |
| 22 | 22 |
| 23 /// A class for finding test files and loading them into a runnable form. | 23 /// A class for finding test files and loading them into a runnable form. |
| 24 class Loader { | 24 class Loader { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 Future close() { | 135 Future close() { |
| 136 for (var isolate in _isolates) { | 136 for (var isolate in _isolates) { |
| 137 isolate.kill(); | 137 isolate.kill(); |
| 138 } | 138 } |
| 139 _isolates.clear(); | 139 _isolates.clear(); |
| 140 | 140 |
| 141 if (_browserServerCompleter == null) return new Future.value(); | 141 if (_browserServerCompleter == null) return new Future.value(); |
| 142 return _browserServer.then((browserServer) => browserServer.close()); | 142 return _browserServer.then((browserServer) => browserServer.close()); |
| 143 } | 143 } |
| 144 } | 144 } |
| OLD | NEW |