OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 | 5 |
6 #import("dart:io"); | 6 import "dart:io"; |
7 #import("dart:scalarlist"); | 7 import "dart:scalarlist"; |
8 | 8 |
9 void testRequestResponseClientCloses( | 9 void testRequestResponseClientCloses( |
10 int totalConnections, int closeStatus, String closeReason) { | 10 int totalConnections, int closeStatus, String closeReason) { |
11 HttpServer server = new HttpServer(); | 11 HttpServer server = new HttpServer(); |
12 HttpClient client = new HttpClient(); | 12 HttpClient client = new HttpClient(); |
13 | 13 |
14 server.listen("127.0.0.1", 0, backlog: totalConnections); | 14 server.listen("127.0.0.1", 0, backlog: totalConnections); |
15 | 15 |
16 // Create a web socket handler and set is as the HTTP server default | 16 // Create a web socket handler and set is as the HTTP server default |
17 // handler. | 17 // handler. |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 testMessageLength(126); | 332 testMessageLength(126); |
333 testMessageLength(127); | 333 testMessageLength(127); |
334 testMessageLength(65535); | 334 testMessageLength(65535); |
335 testMessageLength(65536); | 335 testMessageLength(65536); |
336 testNoUpgrade(); | 336 testNoUpgrade(); |
337 testUsePOST(); | 337 testUsePOST(); |
338 testHashCode(2); | 338 testHashCode(2); |
339 | 339 |
340 testW3CInterface(2, 3002, "Got tired"); | 340 testW3CInterface(2, 3002, "Got tired"); |
341 } | 341 } |
OLD | NEW |