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

Unified Diff: tools/test-runtime.dart

Issue 12302016: Refactoring of ProgressIndicator (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « tools/test.dart ('k') | tools/testing/dart/test_progress.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test-runtime.dart
diff --git a/tools/test-runtime.dart b/tools/test-runtime.dart
index cf86f2d8f8d887487a9ae4cde68f5e1dfd49d8b2..6e348c1ab4488fb62dbd033820c6c26f1b562213 100755
--- a/tools/test-runtime.dart
+++ b/tools/test-runtime.dart
@@ -99,14 +99,43 @@ main() {
var maxBrowserProcesses = maxProcesses;
+ var eventListener = [];
+ if (progressIndicator != 'silent') {
+ var printFailures = true;
+ var formatter = new Formatter();
+ if (progressIndicator == 'color') {
+ progressIndicator = 'compact';
+ formatter = new ColorFormatter();
+ }
+ if (progressIndicator == 'diff') {
+ progressIndicator = 'compact';
+ formatter = new ColorFormatter();
+ printFailures = false;
+ eventListener.add(new StatusFileUpdatePrinter());
+ }
+ eventListener.add(new SummaryPrinter());
+ eventListener.add(new FlakyLogWriter());
+ if (printFailures) {
+ eventListener.add(new TestFailurePrinter(formatter));
+ }
+ eventListener.add(new ProgressIndicator.fromName(progressIndicator,
+ startTime,
+ formatter));
+ if (printTiming) {
+ eventListener.add(new TimingPrinter(startTime));
+ }
+ eventListener.add(new SkippedCompilationsPrinter());
+ eventListener.add(new LeftOverTempDirPrinter());
+ }
+ eventListener.add(new ExitCodeSetter());
+
// Start process queue.
new ProcessQueue(
maxProcesses,
maxBrowserProcesses,
- progressIndicator,
startTime,
- printTiming,
testSuites,
+ eventListener,
allTestsFinished,
verbose,
listTests);
« no previous file with comments | « tools/test.dart ('k') | tools/testing/dart/test_progress.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698