| 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.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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |