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

Side by Side Diff: tools/testing/dart/test_progress.dart

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | tools/testing/dart/test_runner.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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("test_progress"); 5 #library("test_progress");
6 6
7 #import("dart:io");
7 #import("test_runner.dart"); 8 #import("test_runner.dart");
8 #import("test_suite.dart"); 9 #import("test_suite.dart");
9 10
10 class ProgressIndicator { 11 class ProgressIndicator {
11 ProgressIndicator(this._startTime, this._printTiming) 12 ProgressIndicator(this._startTime, this._printTiming)
12 : _tests = [], _failureSummary = []; 13 : _tests = [], _failureSummary = [];
13 14
14 factory ProgressIndicator.fromName(String name, 15 factory ProgressIndicator.fromName(String name,
15 Date startTime, 16 Date startTime,
16 bool printTiming) { 17 bool printTiming) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 var status = 'pass'; 327 var status = 'pass';
327 if (test.output.unexpectedOutput) { 328 if (test.output.unexpectedOutput) {
328 status = 'fail'; 329 status = 'fail';
329 } 330 }
330 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); 331 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString();
331 print('Done ${test.configurationString} ${test.displayName}: $status'); 332 print('Done ${test.configurationString} ${test.displayName}: $status');
332 print('@@@STEP_CLEAR@@@'); 333 print('@@@STEP_CLEAR@@@');
333 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); 334 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@');
334 } 335 }
335 } 336 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698