| Index: tools/testing/dart/test_progress.dart
|
| diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
|
| index feccb6393d62e54426ca41c0620dcda763837baa..8b944a7dea9466d137818d947dfdb575c4fc66d9 100644
|
| --- a/tools/testing/dart/test_progress.dart
|
| +++ b/tools/testing/dart/test_progress.dart
|
| @@ -54,7 +54,14 @@ class ProgressIndicator {
|
| }
|
|
|
| void _printFailureOutput(TestCase test) {
|
| - print('FAILED: ${test.displayName}');
|
| + print('\nFAILED: ${test.displayName}');
|
| + StringBuffer expected = new StringBuffer();
|
| + expected.add('Expected: ');
|
| + for (var expectation in test.expectedOutcomes) {
|
| + expected.add('$expectation ');
|
| + }
|
| + print(expected.toString());
|
| + print('Actual: ${test.output.result}');
|
| if (!test.output.stdout.isEmpty()) {
|
| print('\nstdout:');
|
| test.output.stdout.forEach((s) => print(s));
|
| @@ -82,10 +89,9 @@ class CompactProgressIndicator extends ProgressIndicator {
|
| var passedPadded = _pad(_passedTests.toString(), 5);
|
| var failedPadded = _pad(_failedTests.toString(), 5);
|
| var progressLine =
|
| - '[${_timeString()} | $percentPadded% | +$passedPadded | -$failedPadded]';
|
| - // TODO(ager): Instead of using print we should write this to
|
| - // stdout and use \r to reuse the same line.
|
| - print(progressLine);
|
| + '\r[${_timeString()} | $percentPadded% | ' +
|
| + '+$passedPadded | -$failedPadded]';
|
| + stdout.write(progressLine.charCodes());
|
| }
|
| }
|
|
|
|
|