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.runner_suite; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:async/async.dart'; | 7 import 'package:async/async.dart'; |
10 | 8 |
11 import '../backend/operating_system.dart'; | 9 import '../backend/operating_system.dart'; |
12 import '../backend/suite.dart'; | 10 import '../backend/suite.dart'; |
13 import '../backend/group.dart'; | 11 import '../backend/group.dart'; |
14 import '../backend/test.dart'; | 12 import '../backend/test.dart'; |
15 import '../backend/test_platform.dart'; | 13 import '../backend/test_platform.dart'; |
16 import '../utils.dart'; | 14 import '../utils.dart'; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 _onDebuggingController.add(debugging); | 98 _onDebuggingController.add(debugging); |
101 } | 99 } |
102 | 100 |
103 /// The backing function for [suite.close]. | 101 /// The backing function for [suite.close]. |
104 Future _close() => _closeMemo.runOnce(() async { | 102 Future _close() => _closeMemo.runOnce(() async { |
105 _onDebuggingController.close(); | 103 _onDebuggingController.close(); |
106 if (_onClose != null) await _onClose(); | 104 if (_onClose != null) await _onClose(); |
107 }); | 105 }); |
108 final _closeMemo = new AsyncMemoizer(); | 106 final _closeMemo = new AsyncMemoizer(); |
109 } | 107 } |
OLD | NEW |