| 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 // TODO(7157): Remove this test once the bug is fixed. |
| 7 // This is a copy of web_socket_test.dart with the secure connection |
| 8 // tests disabled, so it does not crash on Windows. |
| 6 import "dart:async"; | 9 import "dart:async"; |
| 7 import "dart:io"; | 10 import "dart:io"; |
| 8 import "dart:isolate"; | 11 import "dart:isolate"; |
| 9 import "dart:scalarlist"; | 12 import "dart:scalarlist"; |
| 10 import "dart:uri"; | 13 import "dart:uri"; |
| 11 | 14 |
| 12 const SERVER_ADDRESS = "127.0.0.1"; | 15 const SERVER_ADDRESS = "127.0.0.1"; |
| 13 const HOST_NAME = "localhost"; | 16 const HOST_NAME = "localhost"; |
| 14 | 17 |
| 15 // We will run the tests once over HTTP and once over HTTPS. | 18 // We will run the tests once over HTTP and once over HTTPS. |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 testMessageLength(65536)).then((_) => | 415 testMessageLength(65536)).then((_) => |
| 413 testNoUpgrade()).then((_) => | 416 testNoUpgrade()).then((_) => |
| 414 testUsePOST()).then((_) => | 417 testUsePOST()).then((_) => |
| 415 testHashCode(2)).then((_) => | 418 testHashCode(2)).then((_) => |
| 416 testW3CInterface(2, 3002, "Got tired")); | 419 testW3CInterface(2, 3002, "Got tired")); |
| 417 | 420 |
| 418 | 421 |
| 419 main() { | 422 main() { |
| 420 ReceivePort keepAlive = new ReceivePort(); | 423 ReceivePort keepAlive = new ReceivePort(); |
| 421 runTests().then((_) { | 424 runTests().then((_) { |
| 422 InitializeSSL(); | |
| 423 secure = true; | |
| 424 }).then((_) => | |
| 425 runTests()).then((_) { | |
| 426 keepAlive.close(); | 425 keepAlive.close(); |
| 427 }); | 426 }); |
| 428 } | 427 } |
| OLD | NEW |