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 | 8 |
8 void testRequestResponseClientCloses( | 9 void testRequestResponseClientCloses( |
9 int totalConnections, int closeStatus, String closeReason) { | 10 int totalConnections, int closeStatus, String closeReason) { |
10 HttpServer server = new HttpServer(); | 11 HttpServer server = new HttpServer(); |
11 HttpClient client = new HttpClient(); | 12 HttpClient client = new HttpClient(); |
12 | 13 |
13 server.listen("127.0.0.1", 0, totalConnections); | 14 server.listen("127.0.0.1", 0, totalConnections); |
14 | 15 |
15 // 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 |
16 // handler. | 17 // handler. |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 testMessageLength(126); | 332 testMessageLength(126); |
332 testMessageLength(127); | 333 testMessageLength(127); |
333 testMessageLength(65535); | 334 testMessageLength(65535); |
334 testMessageLength(65536); | 335 testMessageLength(65536); |
335 testNoUpgrade(); | 336 testNoUpgrade(); |
336 testUsePOST(); | 337 testUsePOST(); |
337 testHashCode(2); | 338 testHashCode(2); |
338 | 339 |
339 testW3CInterface(2, 3002, "Got tired"); | 340 testW3CInterface(2, 3002, "Got tired"); |
340 } | 341 } |
OLD | NEW |