| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of matcher; | 5 part of unittest.matcher; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * The default implementation of IDescription. This should rarely need | 8 * The default implementation of IDescription. This should rarely need |
| 9 * substitution, although conceivably it is a place where other languages | 9 * substitution, although conceivably it is a place where other languages |
| 10 * could be supported. | 10 * could be supported. |
| 11 */ | 11 */ |
| 12 class StringDescription implements Description { | 12 class StringDescription implements Description { |
| 13 var _out; | 13 var _out; |
| 14 | 14 |
| 15 /** Initialize the description with initial contents [init]. */ | 15 /** Initialize the description with initial contents [init]. */ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return this; | 69 return this; |
| 70 } | 70 } |
| 71 | 71 |
| 72 /** Escape the control characters in [string] so that they are visible. */ | 72 /** Escape the control characters in [string] so that they are visible. */ |
| 73 _addEscapedString(String string) { | 73 _addEscapedString(String string) { |
| 74 add("'"); | 74 add("'"); |
| 75 add(escapeString(string)); | 75 add(escapeString(string)); |
| 76 add("'"); | 76 add("'"); |
| 77 } | 77 } |
| 78 } | 78 } |
| OLD | NEW |