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