mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Add comment in unittest
Review URL: https://codereview.chromium.org//12316106 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18993 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
bc4f90bd09
commit
a50b019f35
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ class CompactVMConfiguration extends VMConfiguration {
|
|||
buffer.write(': ');
|
||||
buffer.write(color);
|
||||
|
||||
// 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 +
|
||||
(failed != 0 ? (_RED.length + _NONE.length) : 0);
|
||||
int len = buffer.length - nonVisible;
|
||||
|
|
Loading…
Reference in a new issue