Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: pkg/unittest/lib/compact_vm_config.dart

Issue 12770017: pkg/unittest: config refactor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed scheduled_test test Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 unittestConfiguration = _singleton;
175 configure(new CompactVMConfiguration());
176 } 175 }
176
177 final _singleton = new CompactVMConfiguration();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698