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

Unified Diff: tests/corelib/string_buffer_test.dart

Issue 11645019: Fixed Issue 7508: Many StringBuffer methods return StringBuffer, but should be void. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/string_buffer_test.dart
===================================================================
--- tests/corelib/string_buffer_test.dart (revision 16325)
+++ tests/corelib/string_buffer_test.dart (working copy)
@@ -63,8 +63,6 @@
bf.add("");
}
Expect.equals("", bf.toString());
-
- Expect.equals(bf, bf.add("foo"));
}
static testLength() {
@@ -95,8 +93,6 @@
bf.addAll(["", "", ""]);
Expect.equals("foobarabc", bf.toString());
-
- Expect.equals(bf, bf.addAll(["foo"]));
}
static testClear() {
@@ -112,8 +108,6 @@
bf.clear();
Expect.equals("", bf.toString());
Expect.equals(0, bf.length);
-
- Expect.equals(bf, bf.clear());
}
static testToString() {
@@ -132,11 +126,11 @@
StringBuffer bf = new StringBuffer("");
StringBuffer bf2 = new StringBuffer("");
bf2.add("bf2");
- bf.add("foo")
- .add("bar")
- .add(bf2)
- .add(bf2)
- .add("toto");
+ bf..add("foo")
+ ..add("bar")
+ ..add(bf2)
+ ..add(bf2)
+ ..add("toto");
Expect.equals("foobarbf2bf2toto", bf.toString());
}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698