| OLD | NEW |
| 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("dart:io"); |
| 8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 #import("test_suite.dart"); | 9 #import("test_suite.dart"); |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 output.add(''); | 124 output.add(''); |
| 125 output.add(_header('FAILED: ${test.configurationString}' | 125 output.add(_header('FAILED: ${test.configurationString}' |
| 126 ' ${test.displayName}')); | 126 ' ${test.displayName}')); |
| 127 StringBuffer expected = new StringBuffer(); | 127 StringBuffer expected = new StringBuffer(); |
| 128 expected.add('Expected: '); | 128 expected.add('Expected: '); |
| 129 for (var expectation in test.expectedOutcomes) { | 129 for (var expectation in test.expectedOutcomes) { |
| 130 expected.add('$expectation '); | 130 expected.add('$expectation '); |
| 131 } | 131 } |
| 132 output.add(expected.toString()); | 132 output.add(expected.toString()); |
| 133 output.add('Actual: ${test.output.result}'); | 133 output.add('Actual: ${test.output.result}'); |
| 134 if (test.info != null) { | 134 if (!test.output.hasTimedOut && test.info != null) { |
| 135 if (test.output.incomplete && !test.info.hasCompileError) { | 135 if (test.output.incomplete && !test.info.hasCompileError) { |
| 136 output.add('Unexpected compile-time error.'); | 136 output.add('Unexpected compile-time error.'); |
| 137 } else { | 137 } else { |
| 138 if (test.info.hasCompileError) { | 138 if (test.info.hasCompileError) { |
| 139 output.add('Compile-time error expected.'); | 139 output.add('Compile-time error expected.'); |
| 140 } | 140 } |
| 141 if (test.info.hasRuntimeError) { | 141 if (test.info.hasRuntimeError) { |
| 142 output.add('Runtime error expected.'); | 142 output.add('Runtime error expected.'); |
| 143 } | 143 } |
| 144 } | 144 } |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 print(''); | 441 print(''); |
| 442 print('$config:'); | 442 print('$config:'); |
| 443 statuses.sort((a, b) => a.compareTo(b)); | 443 statuses.sort((a, b) => a.compareTo(b)); |
| 444 for (String status in statuses) { | 444 for (String status in statuses) { |
| 445 print(' $status'); | 445 print(' $status'); |
| 446 } | 446 } |
| 447 }); | 447 }); |
| 448 _printStatus(); | 448 _printStatus(); |
| 449 } | 449 } |
| 450 } | 450 } |
| OLD | NEW |