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; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:io'; | 6 import 'dart:io'; |
9 | 7 |
10 import 'package:async/async.dart'; | 8 import 'package:async/async.dart'; |
11 | 9 |
12 import 'backend/group.dart'; | 10 import 'backend/group.dart'; |
13 import 'backend/group_entry.dart'; | 11 import 'backend/group_entry.dart'; |
14 import 'backend/suite.dart'; | 12 import 'backend/suite.dart'; |
15 import 'backend/test.dart'; | 13 import 'backend/test.dart'; |
16 import 'backend/test_platform.dart'; | 14 import 'backend/test_platform.dart'; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 await _debugOperation.valueOrCancellation(); | 299 await _debugOperation.valueOrCancellation(); |
302 }).listen(null); | 300 }).listen(null); |
303 | 301 |
304 var results = await Future.wait([ | 302 var results = await Future.wait([ |
305 _suiteSubscription.asFuture().then((_) => _engine.suiteSink.close()), | 303 _suiteSubscription.asFuture().then((_) => _engine.suiteSink.close()), |
306 _engine.run() | 304 _engine.run() |
307 ]); | 305 ]); |
308 return results.last; | 306 return results.last; |
309 } | 307 } |
310 } | 308 } |
OLD | NEW |