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

Unified Diff: lib/compact_vm_config.dart

Issue 846143003: Reformatted code (Closed) Base URL: https://github.com/dart-lang/unittest.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « codereview.settings ('k') | lib/html_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compact_vm_config.dart
diff --git a/lib/compact_vm_config.dart b/lib/compact_vm_config.dart
index aee1405da0b7ed912c1c820bcd9d97ce88d40359..d9bc0b4b1cb3d5fb12c54b5f67ffeba699f45f18 100644
--- a/lib/compact_vm_config.dart
+++ b/lib/compact_vm_config.dart
@@ -134,7 +134,8 @@ class CompactVMConfiguration extends VMConfiguration {
// Ensure the line fits under MAX_LINE. [buffer] includes the color escape
// sequences too. Because these sequences are not visible characters, we
// make sure they are not counted towards the limit.
- int nonVisible = _nonVisiblePrefix + color.length +
+ int nonVisible = _nonVisiblePrefix +
+ color.length +
(_fail != 0 ? (_RED.length + _NONE.length) : 0);
int len = buffer.length - nonVisible;
var mx = MAX_LINE - len;
@@ -155,7 +156,7 @@ class CompactVMConfiguration extends VMConfiguration {
}
String _padTime(int time) =>
- (time == 0) ? '00' : ((time < 10) ? '0$time' : '$time');
+ (time == 0) ? '00' : ((time < 10) ? '0$time' : '$time');
String _timeString(Duration duration) {
var min = duration.inMinutes;
@@ -181,7 +182,7 @@ class CompactVMConfiguration extends VMConfiguration {
var buffer = new StringBuffer();
buffer.write(words.first);
buffer.write(' ...');
- for (; i < words.length; i++) {
+ for ( ; i < words.length; i++) {
buffer.write(' ');
buffer.write(words[i]);
}
« no previous file with comments | « codereview.settings ('k') | lib/html_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698