Chromium Code Reviews| 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 */ |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 var res = text.substring(text.length - maxLength + 4); | 164 var res = text.substring(text.length - maxLength + 4); |
| 165 var firstSpace = res.indexOf(' '); | 165 var firstSpace = res.indexOf(' '); |
| 166 if (firstSpace > 0) { | 166 if (firstSpace > 0) { |
| 167 res = res.substring(firstSpace); | 167 res = res.substring(firstSpace); |
| 168 } | 168 } |
| 169 return '...$res'; | 169 return '...$res'; |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 void useCompactVMConfiguration() { | 173 void useCompactVMConfiguration() { |
| 174 if (config != null) return; | 174 config = new CompactVMConfiguration(); |
|
Siggi Cherem (dart-lang)
2013/03/24 17:20:09
Let's keep this part (here and in the other config
kevmoo-old
2013/03/24 18:00:02
How about Configuration classes implement
bool op
Siggi Cherem (dart-lang)
2013/03/24 18:18:42
Could be. One reason I'm not entirely sure is that
| |
| 175 configure(new CompactVMConfiguration()); | |
| 176 } | 175 } |
| OLD | NEW |