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

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

Issue 8995009: Implement chromium component. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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("test_runner.dart"); 7 #import("test_runner.dart");
8 #import("test_suite.dart"); 8 #import("test_suite.dart");
9 9
10 class ProgressIndicator { 10 class ProgressIndicator {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 print(expected.toString()); 117 print(expected.toString());
118 print('Actual: ${test.output.result}'); 118 print('Actual: ${test.output.result}');
119 if (!test.output.stdout.isEmpty()) { 119 if (!test.output.stdout.isEmpty()) {
120 print('\nstdout:'); 120 print('\nstdout:');
121 test.output.stdout.forEach((s) => print(s)); 121 test.output.stdout.forEach((s) => print(s));
122 } 122 }
123 if (!test.output.stderr.isEmpty()) { 123 if (!test.output.stderr.isEmpty()) {
124 print('\nstderr:'); 124 print('\nstderr:');
125 test.output.stderr.forEach((s) => print(s)); 125 test.output.stderr.forEach((s) => print(s));
126 } 126 }
127 if (test is BrowserTestCase) {
128 print('\nCompilation command: ${test.dynamic.compilerPath} ' +
129 Strings.join(test.dynamic.compilerArguments, ' '));
130 }
127 print('\nCommand line: ${test.commandLine}'); 131 print('\nCommand line: ${test.commandLine}');
128 } 132 }
129 133
130 void _printStatus() { 134 void _printStatus() {
131 if (_failedTests == 0) { 135 if (_failedTests == 0) {
132 print('\n==='); 136 print('\n===');
133 print('=== All tests succeeded'); 137 print('=== All tests succeeded');
134 print('===\n'); 138 print('===\n');
135 } else { 139 } else {
136 var pluralSuffix = _failedTests != 1 ? 's' : ''; 140 var pluralSuffix = _failedTests != 1 ? 's' : '';
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 var status = 'pass'; 282 var status = 'pass';
279 if (test.output.unexpectedOutput) { 283 if (test.output.unexpectedOutput) {
280 status = 'fail'; 284 status = 'fail';
281 } 285 }
282 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); 286 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString();
283 print('Done ${test.displayName}: $status'); 287 print('Done ${test.displayName}: $status');
284 print('@@@STEP_CLEAR@@@'); 288 print('@@@STEP_CLEAR@@@');
285 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); 289 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@');
286 } 290 }
287 } 291 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698