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.loader; | 5 library test.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:analyzer/analyzer.dart'; | 11 import 'package:analyzer/analyzer.dart' hide Configuration; |
12 import 'package:async/async.dart'; | 12 import 'package:async/async.dart'; |
13 import 'package:path/path.dart' as p; | 13 import 'package:path/path.dart' as p; |
14 import 'package:stack_trace/stack_trace.dart'; | 14 import 'package:stack_trace/stack_trace.dart'; |
15 | 15 |
16 import '../backend/group.dart'; | 16 import '../backend/group.dart'; |
17 import '../backend/metadata.dart'; | 17 import '../backend/metadata.dart'; |
18 import '../backend/test.dart'; | 18 import '../backend/test.dart'; |
19 import '../backend/test_platform.dart'; | 19 import '../backend/test_platform.dart'; |
20 import '../util/dart.dart' as dart; | 20 import '../util/dart.dart' as dart; |
21 import '../util/io.dart'; | 21 import '../util/io.dart'; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 Future close() { | 266 Future close() { |
267 return _closeMemo.runOnce(() async { | 267 return _closeMemo.runOnce(() async { |
268 await Future.wait(_suites.map((suite) => suite.close())); | 268 await Future.wait(_suites.map((suite) => suite.close())); |
269 _suites.clear(); | 269 _suites.clear(); |
270 | 270 |
271 if (!_browserServerMemo.hasRun) return; | 271 if (!_browserServerMemo.hasRun) return; |
272 await (await _browserServer).close(); | 272 await (await _browserServer).close(); |
273 }); | 273 }); |
274 } | 274 } |
275 } | 275 } |
OLD | NEW |