| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 import "package:expect/expect.dart"; |
| 6 |
| 5 // TODO(srdjan): Move StringBuffer to visible names. | 7 // TODO(srdjan): Move StringBuffer to visible names. |
| 6 | 8 |
| 7 void testConstructor() { | 9 void testConstructor() { |
| 8 StringBuffer bf = new StringBuffer(""); | 10 StringBuffer bf = new StringBuffer(""); |
| 9 Expect.equals(true, bf.isEmpty); | 11 Expect.equals(true, bf.isEmpty); |
| 10 | 12 |
| 11 bf = new StringBuffer("abc"); | 13 bf = new StringBuffer("abc"); |
| 12 Expect.equals(3, bf.length); | 14 Expect.equals(3, bf.length); |
| 13 Expect.equals("abc", bf.toString()); | 15 Expect.equals("abc", bf.toString()); |
| 14 | 16 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 testToString(); | 176 testToString(); |
| 175 testConstructor(); | 177 testConstructor(); |
| 176 testLength(); | 178 testLength(); |
| 177 testIsEmpty(); | 179 testIsEmpty(); |
| 178 testWrite(); | 180 testWrite(); |
| 179 testWriteCharCode(); | 181 testWriteCharCode(); |
| 180 testWriteAll(); | 182 testWriteAll(); |
| 181 testClear(); | 183 testClear(); |
| 182 testChaining(); | 184 testChaining(); |
| 183 } | 185 } |
| OLD | NEW |