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

Unified Diff: tests/standalone/io/http_basic_test.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/http_basic_test.dart
diff --git a/tests/standalone/io/http_basic_test.dart b/tests/standalone/io/http_basic_test.dart
index eff6f5d056d168e2ad0b4458a017dddb5c57e85e..4032d04d390a7e494d1e3b3e41688dbbd0fd98b4 100644
--- a/tests/standalone/io/http_basic_test.dart
+++ b/tests/standalone/io/http_basic_test.dart
@@ -204,7 +204,7 @@ void testGET() {
Expect.equals(HttpStatus.OK, response.statusCode);
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals("01234567890", body.toString());
httpClient.close();
@@ -240,7 +240,7 @@ void testPOST(bool chunkedEncoding) {
Expect.equals(HttpStatus.OK, response.statusCode);
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals(data, body.toString());
count++;
@@ -274,7 +274,7 @@ void test404() {
Expect.equals(HttpStatus.NOT_FOUND, response.statusCode);
var body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals("Page not found", body.toString());
httpClient.close();

Powered by Google App Engine
This is Rietveld 408576698