| 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 /** | 5 /** |
| 6 * A test configuration that generates a compact 1-line progress bar. The bar is | 6 * A test configuration that generates a compact 1-line progress bar. The bar is |
| 7 * updated in-place before and after each test is executed. If all test pass, | 7 * updated in-place before and after each test is executed. If all test pass, |
| 8 * you should only see a couple lines in the terminal. If a test fails, the | 8 * you should only see a couple lines in the terminal. If a test fails, the |
| 9 * failure is shown and the progress bar continues to be updated below it. | 9 * failure is shown and the progress bar continues to be updated below it. |
| 10 */ | 10 */ |
| 11 library compact_vm_config; | 11 library unittest.compact_vm_config; |
| 12 | 12 |
| 13 import 'dart:async'; | 13 import 'dart:async'; |
| 14 import 'dart:io'; | 14 import 'dart:io'; |
| 15 import 'dart:isolate'; | 15 import 'dart:isolate'; |
| 16 | 16 |
| 17 import 'unittest.dart'; | 17 import 'unittest.dart'; |
| 18 import 'src/utils.dart'; | 18 import 'src/utils.dart'; |
| 19 import 'vm_config.dart'; | 19 import 'vm_config.dart'; |
| 20 | 20 |
| 21 const String _GREEN = '\u001b[32m'; | 21 const String _GREEN = '\u001b[32m'; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // If the test is running on the Dart buildbots, we don't want to use this | 191 // If the test is running on the Dart buildbots, we don't want to use this |
| 192 // config since it's output may not be what the bots expect. | 192 // config since it's output may not be what the bots expect. |
| 193 if (Platform.environment['LOGNAME'] == 'chrome-bot') { | 193 if (Platform.environment['LOGNAME'] == 'chrome-bot') { |
| 194 return; | 194 return; |
| 195 } | 195 } |
| 196 | 196 |
| 197 unittestConfiguration = _singleton; | 197 unittestConfiguration = _singleton; |
| 198 } | 198 } |
| 199 | 199 |
| 200 final _singleton = new CompactVMConfiguration(); | 200 final _singleton = new CompactVMConfiguration(); |
| OLD | NEW |