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

Side by Side Diff: tests/corelib/string_buffer_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). 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
« no previous file with comments | « tests/corelib/string_base_vm_test.dart ('k') | tests/corelib/string_case_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
7 // TODO(srdjan): Move StringBuffer to visible names. 5 // TODO(srdjan): Move StringBuffer to visible names.
8 6
9 void testConstructor() { 7 void testConstructor() {
10 StringBuffer bf = new StringBuffer(""); 8 StringBuffer bf = new StringBuffer("");
11 Expect.equals(true, bf.isEmpty); 9 Expect.equals(true, bf.isEmpty);
12 10
13 bf = new StringBuffer("abc"); 11 bf = new StringBuffer("abc");
14 Expect.equals(3, bf.length); 12 Expect.equals(3, bf.length);
15 Expect.equals("abc", bf.toString()); 13 Expect.equals("abc", bf.toString());
16 14
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 testToString(); 174 testToString();
177 testConstructor(); 175 testConstructor();
178 testLength(); 176 testLength();
179 testIsEmpty(); 177 testIsEmpty();
180 testWrite(); 178 testWrite();
181 testWriteCharCode(); 179 testWriteCharCode();
182 testWriteAll(); 180 testWriteAll();
183 testClear(); 181 testClear();
184 testChaining(); 182 testChaining();
185 } 183 }
OLDNEW
« no previous file with comments | « tests/corelib/string_base_vm_test.dart ('k') | tests/corelib/string_case_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698