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

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

Issue 12383048: Improve support for HTTP 1.0 clients (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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_10_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/http_content_length_test.dart
diff --git a/tests/standalone/io/http_content_length_test.dart b/tests/standalone/io/http_content_length_test.dart
index 61156827e3a4962b6fc1bbda55a31b49248851d2..75ceea347aa4506bb4a815c4bbf0bcb904c836e0 100644
--- a/tests/standalone/io/http_content_length_test.dart
+++ b/tests/standalone/io/http_content_length_test.dart
@@ -199,38 +199,6 @@ void testBodyChunked(int totalConnections, bool useHeader) {
});
}
-void testHttp10() {
- HttpServer.bind("127.0.0.1", 0, 5).then((server) {
- server.listen(
- (HttpRequest request) {
- Expect.isNull(request.headers.value('content-length'));
- Expect.equals(-1, request.contentLength);
- var response = request.response;
- response.contentLength = 0;
- Expect.equals("1.0", request.protocolVersion);
- response.done
- .then((_) => Expect.fail("Unexpected response completion"))
- .catchError((e) => Expect.isTrue(e.error is HttpException));
- response.addString("x");
- response.close();
- Expect.throws(() => response.addString("x"),
- (e) => e is StateError);
- },
- onError: (e) => Expect.fail("Unexpected error $e"));
-
- Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.addString("GET / HTTP/1.0\r\n\r\n");
- socket.close();
- socket.listen(
- (d) { },
- onDone: () {
- socket.destroy();
- server.close();
- });
- });
- });
-}
-
void main() {
testNoBody(5, false);
testNoBody(5, true);
@@ -238,5 +206,4 @@ void main() {
testBody(5, true);
testBodyChunked(5, false);
testBodyChunked(5, true);
- testHttp10();
}
« no previous file with comments | « tests/standalone/io/http_10_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698