| 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 #import("status_file_parser.dart"); | 10 import "status_file_parser.dart"; |
| 11 | 11 |
| 12 class ProgressIndicator { | 12 class ProgressIndicator { |
| 13 ProgressIndicator(this._startTime, this._printTiming) | 13 ProgressIndicator(this._startTime, this._printTiming) |
| 14 : _tests = [], _failureSummary = []; | 14 : _tests = [], _failureSummary = []; |
| 15 | 15 |
| 16 factory ProgressIndicator.fromName(String name, | 16 factory ProgressIndicator.fromName(String name, |
| 17 Date startTime, | 17 Date startTime, |
| 18 bool printTiming) { | 18 bool printTiming) { |
| 19 switch (name) { | 19 switch (name) { |
| 20 case 'compact': | 20 case 'compact': |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 print(''); | 477 print(''); |
| 478 print('$config:'); | 478 print('$config:'); |
| 479 statuses.sort((a, b) => a.compareTo(b)); | 479 statuses.sort((a, b) => a.compareTo(b)); |
| 480 for (String status in statuses) { | 480 for (String status in statuses) { |
| 481 print(' $status'); | 481 print(' $status'); |
| 482 } | 482 } |
| 483 }); | 483 }); |
| 484 _printStatus(); | 484 _printStatus(); |
| 485 } | 485 } |
| 486 } | 486 } |
| OLD | NEW |