| 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("dart:builtin"); | |
| 9 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 10 #import("test_suite.dart"); | 9 #import("test_suite.dart"); |
| 11 | 10 |
| 12 class ProgressIndicator { | 11 class ProgressIndicator { |
| 13 ProgressIndicator(this._startTime, this._printTiming) | 12 ProgressIndicator(this._startTime, this._printTiming) |
| 14 : _tests = [], _failureSummary = []; | 13 : _tests = [], _failureSummary = []; |
| 15 | 14 |
| 16 factory ProgressIndicator.fromName(String name, | 15 factory ProgressIndicator.fromName(String name, |
| 17 Date startTime, | 16 Date startTime, |
| 18 bool printTiming) { | 17 bool printTiming) { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // printed by the program invoking this. | 365 // printed by the program invoking this. |
| 367 // TODO(ahe): Pass in the step name as an option, and let | 366 // TODO(ahe): Pass in the step name as an option, and let |
| 368 // test.py take care of printing the steps. | 367 // test.py take care of printing the steps. |
| 369 var name = 'failures ($_startTime)'; | 368 var name = 'failures ($_startTime)'; |
| 370 print('@@@STEP_FAILURE@@@'); | 369 print('@@@STEP_FAILURE@@@'); |
| 371 print('@@@BUILD_STEP $name@@@'); | 370 print('@@@BUILD_STEP $name@@@'); |
| 372 } | 371 } |
| 373 super._printFailureSummary(); | 372 super._printFailureSummary(); |
| 374 } | 373 } |
| 375 } | 374 } |
| OLD | NEW |