| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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:async"; | 7 import 'dart:async'; |
| 8 import "dart:io"; | 8 import 'dart:convert' show JSON; |
| 9 import "dart:io" as io; | 9 import 'dart:io'; |
| 10 import "dart:convert" show JSON; | 10 import 'dart:io' as io show exitCode; |
| 11 import "path.dart"; | 11 |
| 12 import "status_file_parser.dart"; | 12 import 'command.dart'; |
| 13 import "test_runner.dart"; | 13 import 'path.dart'; |
| 14 import "test_suite.dart"; | 14 import 'status_file_parser.dart'; |
| 15 import "utils.dart"; | 15 import 'summary_report.dart'; |
| 16 import 'test_case.dart'; |
| 17 import 'test_utils.dart'; |
| 18 import 'utils.dart'; |
| 16 | 19 |
| 17 String _pad(String s, int length) { | 20 String _pad(String s, int length) { |
| 18 StringBuffer buffer = new StringBuffer(); | 21 StringBuffer buffer = new StringBuffer(); |
| 19 for (int i = s.length; i < length; i++) { | 22 for (int i = s.length; i < length; i++) { |
| 20 buffer.write(' '); | 23 buffer.write(' '); |
| 21 } | 24 } |
| 22 buffer.write(s); | 25 buffer.write(s); |
| 23 return buffer.toString(); | 26 return buffer.toString(); |
| 24 } | 27 } |
| 25 | 28 |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 return new VerboseProgressIndicator(startTime); | 664 return new VerboseProgressIndicator(startTime); |
| 662 case 'status': | 665 case 'status': |
| 663 return new ProgressIndicator(startTime); | 666 return new ProgressIndicator(startTime); |
| 664 case 'buildbot': | 667 case 'buildbot': |
| 665 return new BuildbotProgressIndicator(startTime); | 668 return new BuildbotProgressIndicator(startTime); |
| 666 default: | 669 default: |
| 667 assert(false); | 670 assert(false); |
| 668 break; | 671 break; |
| 669 } | 672 } |
| 670 } | 673 } |
| OLD | NEW |