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

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

Issue 9036009: Add client/tests/client web tests to the test.dart test script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments, fix Windows case. 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
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) { 127 if (test is BrowserTestCase && test.dynamic.compilerPath != null) {
128 print('\nCompilation command: ${test.dynamic.compilerPath} ' + 128 print('\nCompilation command: ${test.dynamic.compilerPath} ' +
129 Strings.join(test.dynamic.compilerArguments, ' ')); 129 Strings.join(test.dynamic.compilerArguments, ' '));
130 } 130 }
131 print('\nCommand line: ${test.commandLine}'); 131 print('\nCommand line: ${test.commandLine}');
132 } 132 }
133 133
134 void _printStatus() { 134 void _printStatus() {
135 if (_failedTests == 0) { 135 if (_failedTests == 0) {
136 print('\n==='); 136 print('\n===');
137 print('=== All tests succeeded'); 137 print('=== All tests succeeded');
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 var status = 'pass'; 282 var status = 'pass';
283 if (test.output.unexpectedOutput) { 283 if (test.output.unexpectedOutput) {
284 status = 'fail'; 284 status = 'fail';
285 } 285 }
286 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); 286 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString();
287 print('Done ${test.displayName}: $status'); 287 print('Done ${test.displayName}: $status');
288 print('@@@STEP_CLEAR@@@'); 288 print('@@@STEP_CLEAR@@@');
289 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); 289 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@');
290 } 290 }
291 } 291 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698