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

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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 void allTestsFinished() { 167 void allTestsFinished() {
168 for (var conf in configurations) { 168 for (var conf in configurations) {
169 if (conf.containsKey('_servers_')) { 169 if (conf.containsKey('_servers_')) {
170 conf['_servers_'].stopServers(); 170 conf['_servers_'].stopServers();
171 } 171 }
172 } 172 }
173 DebugLogger.close(); 173 DebugLogger.close();
174 } 174 }
175 175
176 var eventListener = [];
177 if (progressIndicator != 'silent') {
178 var printFailures = true;
179 var formatter = new Formatter();
180 if (progressIndicator == 'color') {
181 progressIndicator = 'compact';
182 formatter = new ColorFormatter();
183 }
184 if (progressIndicator == 'diff') {
185 progressIndicator = 'compact';
186 formatter = new ColorFormatter();
187 printFailures = false;
188 eventListener.add(new StatusFileUpdatePrinter());
189 }
190 eventListener.add(new SummaryPrinter());
191 eventListener.add(new FlakyLogWriter());
192 if (printFailures) {
193 eventListener.add(new TestFailurePrinter(formatter));
194 }
195 eventListener.add(new ProgressIndicator.fromName(progressIndicator,
196 startTime,
197 formatter));
198 if (printTiming) {
199 eventListener.add(new TimingPrinter(startTime));
200 }
201 eventListener.add(new SkippedCompilationsPrinter());
202 eventListener.add(new LeftOverTempDirPrinter());
203 }
204 eventListener.add(new ExitCodeSetter());
205
176 // Start process queue. 206 // Start process queue.
177 new ProcessQueue(maxProcesses, 207 new ProcessQueue(maxProcesses,
178 maxBrowserProcesses, 208 maxBrowserProcesses,
179 progressIndicator,
180 startTime, 209 startTime,
181 printTiming,
182 testSuites, 210 testSuites,
211 eventListener,
183 allTestsFinished, 212 allTestsFinished,
184 verbose, 213 verbose,
185 listTests); 214 listTests);
186 } 215 }
OLDNEW
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698