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

Unified Diff: pkg/http/test/response_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « pkg/http/test/request_test.dart ('k') | pkg/http/test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/response_test.dart
diff --git a/pkg/http/test/response_test.dart b/pkg/http/test/response_test.dart
index 04d3f3ba89c190471b372814c7e367db11efe628..ba09738849b2e91ab30db381f1441c37b9de56bb 100644
--- a/pkg/http/test/response_test.dart
+++ b/pkg/http/test/response_test.dart
@@ -46,7 +46,7 @@ void main() {
var stream = new ListInputStream();
var streamResponse = new http.StreamedResponse(stream, 200, 13);
var future = http.Response.fromStream(streamResponse)
- .transform((response) => response.body);
+ .then((response) => response.body);
expect(future, completion(equals("Hello, world!")));
stream.write([72, 101, 108, 108, 111, 44, 32]);
@@ -58,7 +58,7 @@ void main() {
var stream = new ListInputStream();
var streamResponse = new http.StreamedResponse(stream, 200, 5);
var future = http.Response.fromStream(streamResponse)
- .transform((response) => response.bodyBytes);
+ .then((response) => response.bodyBytes);
expect(future, completion(equals([104, 101, 108, 108, 111])));
stream.write([104, 101, 108, 108, 111]);
« no previous file with comments | « pkg/http/test/request_test.dart ('k') | pkg/http/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698