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

Unified Diff: tests/standalone/io/regress_6521_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 | « tests/standalone/io/http_close_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/regress_6521_test.dart
diff --git a/tests/standalone/io/regress_6521_test.dart b/tests/standalone/io/regress_6521_test.dart
deleted file mode 100644
index aa8a9647a14b0b23c67acdf7752629ddcde4699d..0000000000000000000000000000000000000000
--- a/tests/standalone/io/regress_6521_test.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-//
-// Regression test for http://code.google.com/p/dart/issues/detail?id=6393.
-
-import "dart:io";
-import "dart:uri";
-
-var client = new HttpClient();
-var clientRequest;
-
-void main() {
- HttpServer.bind("127.0.0.1", 0)
- .then((server) {
- server.listen(
- (req) {
- req.pipe(req.response);
- });
-
- client.openUrl("POST", Uri.parse("http://localhost:${server.port}/"))
- .then((request) {
- // Keep a reference to the client request object.
- clientRequest = request;
- request.writeBytes([0]);
- return request.response;
- })
- .then((response) {
- // Wait with closing the client request until the response headers
- // are done.
- clientRequest.close();
- response.listen(
- (_) {},
- onDone: () {
- client.close();
- server.close();
- });
- });
- });
-}
« no previous file with comments | « tests/standalone/io/http_close_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698