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

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

Issue 1561073003: Support re-running tests while debugging. (Closed) Base URL: git@github.com:dart-lang/test@debugger-wip
Patch Set: Code review changes Created 4 years, 11 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 | « lib/src/runner/loader.dart ('k') | lib/src/utils.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.reporter.compact; 5 library test.runner.reporter.compact;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 void pause() { 145 void pause() {
146 if (_paused) return; 146 if (_paused) return;
147 _paused = true; 147 _paused = true;
148 148
149 if (!_printedNewline) print(''); 149 if (!_printedNewline) print('');
150 _printedNewline = true; 150 _printedNewline = true;
151 _stopwatch.stop(); 151 _stopwatch.stop();
152 152
153 // Force the next message to be printed, even if it's identical to the
154 // previous one. If the reporter was paused, text was probably printed
155 // during the pause.
156 _lastProgressMessage = null;
157
153 for (var subscription in _subscriptions) { 158 for (var subscription in _subscriptions) {
154 subscription.pause(); 159 subscription.pause();
155 } 160 }
156 } 161 }
157 162
158 void resume() { 163 void resume() {
159 if (!_paused) return; 164 if (!_paused) return;
160 _paused = false; 165 _paused = false;
161 166
162 if (_stopwatchStarted) _stopwatch.start(); 167 if (_stopwatchStarted) _stopwatch.start();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 388
384 if (_printPlatform && liveTest.suite.platform != null) { 389 if (_printPlatform && liveTest.suite.platform != null) {
385 name = "[${liveTest.suite.platform.name}] $name"; 390 name = "[${liveTest.suite.platform.name}] $name";
386 } 391 }
387 392
388 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor"; 393 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor";
389 394
390 return name; 395 return name;
391 } 396 }
392 } 397 }
OLDNEW
« no previous file with comments | « lib/src/runner/loader.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698