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

Unified Diff: tools/testing/dart/test_progress.dart

Issue 9148062: Let test.dart's compact progress indicator be overwritten by the summary report. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_progress.dart
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
index 359b2a1eeba6c3b8b9679c2005ba056ae11e6a7b..2fb056b0cae5080dc4b3117c262622e49053dbff 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -167,6 +167,16 @@ class CompactIndicator extends ProgressIndicator {
exit(_failedTests > 0 ? 1 : 0);
}
+ void allTestsKnown() {
Bill Hesse 2012/01/12 12:53:36 Put a comment that this is a function override?
+ if (!_allTestsKnown) {
+ // Clear progress indicator before printing summary report.
+ stdout.write(
+ '\r \r'.charCodes());
Anders Johnsen 2012/01/12 14:25:25 Are we sure this number of spaces are sufficient?
+ SummaryReport.printReport();
+ }
+ _allTestsKnown = true;
+ }
+
void _printStartProgress(TestCase test) => _printProgress();
void _printDoneProgress(TestCase test) => _printProgress();
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698