Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: lib/src/runner.dart

Issue 1264043002: Display a pause screen in a paused browser. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/src/runner/browser/browser_manager.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/runner/browser/browser_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698