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; | 5 library test.runner; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:async/async.dart'; | 10 import 'package:async/async.dart'; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 _reporter.pause(); | 231 _reporter.pause(); |
232 | 232 |
233 var bold = _configuration.color ? '\u001b[1m' : ''; | 233 var bold = _configuration.color ? '\u001b[1m' : ''; |
234 var noColor = _configuration.color ? '\u001b[0m' : ''; | 234 var noColor = _configuration.color ? '\u001b[0m' : ''; |
235 print(''); | 235 print(''); |
236 print(wordWrap( | 236 print(wordWrap( |
237 "${bold}The test runner is paused.${noColor} Open the dev console in " | 237 "${bold}The test runner is paused.${noColor} Open the dev console in " |
238 "${suite.platform} and set breakpoints. Once you're finished, " | 238 "${suite.platform} and set breakpoints. Once you're finished, " |
239 "return to this terminal and press Enter.")); | 239 "return to this terminal and press Enter.")); |
240 | 240 |
241 // TODO(nweiz): Display something in the paused browsers indicating that | 241 await race([ |
242 // they're paused. | 242 suite.environment.displayPause(), |
243 | 243 cancelableNext(stdinLines) |
244 await stdinLines.next; | 244 ]); |
245 } finally { | 245 } finally { |
246 _reporter.resume(); | 246 _reporter.resume(); |
247 } | 247 } |
248 } | 248 } |
249 } | 249 } |
OLD | NEW |