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

Side by Side Diff: tests/standalone/io/web_socket_test.dart

Issue 11570005: Remove old #import, #source, and #library syntax from tests/standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698