| Index: tests/standalone/io/http_stream_close_test.dart
|
| diff --git a/tests/standalone/io/http_stream_close_test.dart b/tests/standalone/io/http_stream_close_test.dart
|
| deleted file mode 100644
|
| index 33aa8ec0dfba63489c538efbce8e7298d305c37f..0000000000000000000000000000000000000000
|
| --- a/tests/standalone/io/http_stream_close_test.dart
|
| +++ /dev/null
|
| @@ -1,42 +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.
|
| -//
|
| -
|
| -import "dart:io";
|
| -import "dart:uri";
|
| -
|
| -main() {
|
| - bool serverOnClosed = false;
|
| - bool clientOnClosed = false;
|
| -
|
| - var server = new HttpServer();
|
| - server.listen("127.0.0.1", 0);
|
| - server.defaultRequestHandler = (request, response) {
|
| - request.inputStream.onData = request.inputStream.read;
|
| - request.inputStream.onClosed = () {
|
| - response.outputStream.onClosed = () => serverOnClosed = true;
|
| - response.outputStream.writeString("hello!");
|
| - response.outputStream.close();
|
| - };
|
| - };
|
| -
|
| - var client = new HttpClient();
|
| - var connection = client.postUrl(new Uri.fromString("http://127.0.0.1:${server.port}"));
|
| - connection.onError = (e) => throw e;
|
| - connection.onRequest = (request) {
|
| - request.contentLength = "hello!".length;
|
| - request.outputStream.onError = (e) => throw e;
|
| - request.outputStream.onClosed = () => clientOnClosed = true;
|
| - request.outputStream.writeString("hello!");
|
| - request.outputStream.close();
|
| - };
|
| - connection.onResponse = (response) {
|
| - response.inputStream.onData = response.inputStream.read;
|
| - response.inputStream.onClosed = () {
|
| - Expect.isTrue(serverOnClosed && clientOnClosed);
|
| - server.close();
|
| - client.shutdown();
|
| - };
|
| - };
|
| -}
|
|
|