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

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

Issue 13861005: Delay HttpClientResponse until HttpClientRequest is fully sent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove test. Created 7 years, 8 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 | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_close_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_client_request_test.dart
diff --git a/tests/standalone/io/http_client_request_test.dart b/tests/standalone/io/http_client_request_test.dart
index e7b2110d35237b389ae2cc81123f95cdf630697d..3fd108c2c327a71ed8a3919bb90efdab8e2ac046 100644
--- a/tests/standalone/io/http_client_request_test.dart
+++ b/tests/standalone/io/http_client_request_test.dart
@@ -29,15 +29,17 @@ void testClientRequest(void handler(request)) {
.catchError((error) {
server.close();
client.close();
- }, test: (e) => e is HttpParserException);
+ });
});
}
void testResponseDone() {
testClientRequest((request) {
request.close();
- request.done.then((req) {
- Expect.equals(request, req);
+ request.done.then((res1) {
+ request.response.then((res2) {
+ Expect.equals(res1, res2);
+ });
});
return request.response;
});
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698