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

Side by Side Diff: tools/test.dart

Issue 12302016: Refactoring of ProgressIndicator (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added the TimingPrinter EventListener Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 serverList: TestingServerRunner.serverList)); 156 serverList: TestingServerRunner.serverList));
157 } 157 }
158 } 158 }
159 } 159 }
160 160
161 void allTestsFinished() { 161 void allTestsFinished() {
162 TestingServerRunner.terminateHttpServers(); 162 TestingServerRunner.terminateHttpServers();
163 DebugLogger.close(); 163 DebugLogger.close();
164 } 164 }
165 165
166 var eventListener = [];
167 if (progressIndicator != 'silent') {
168 eventListener.add(new SummaryPrinter());
169 if (printTiming) {
170 eventListener.add(new TimingPrinter(startTime));
171 }
172 eventListener.add(new ProgressIndicator.fromName(progressIndicator,
173 startTime));
174 }
175 eventListener.add(new ExitCodeSetter());
176
166 // Start process queue. 177 // Start process queue.
167 new ProcessQueue(maxProcesses, 178 new ProcessQueue(maxProcesses,
168 maxBrowserProcesses, 179 maxBrowserProcesses,
169 progressIndicator,
170 startTime, 180 startTime,
171 printTiming,
172 testSuites, 181 testSuites,
182 eventListener,
173 allTestsFinished, 183 allTestsFinished,
174 verbose, 184 verbose,
175 listTests); 185 listTests);
176 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698