| 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 // |
| 5 // VMOptions= |
| 6 // VMOptions=--short_socket_read |
| 7 // VMOptions=--short_socket_write |
| 8 // VMOptions=--short_socket_read --short_socket_write |
| 4 | 9 |
| 5 #library("http_test.dart"); | |
| 6 #import("dart:isolate"); | 10 #import("dart:isolate"); |
| 7 #import("dart:io"); | 11 #import("dart:io"); |
| 8 #import("../../../../chat/http.dart"); | |
| 9 #import("../../../../chat/chat_server_lib.dart"); | |
| 10 | |
| 11 | 12 |
| 12 class TestServerMain { | 13 class TestServerMain { |
| 13 TestServerMain() | 14 TestServerMain() |
| 14 : _statusPort = new ReceivePort(), | 15 : _statusPort = new ReceivePort(), |
| 15 _serverPort = null { | 16 _serverPort = null { |
| 16 new TestServer().spawn().then((SendPort port) { | 17 new TestServer().spawn().then((SendPort port) { |
| 17 _serverPort = port; | 18 _serverPort = port; |
| 18 }); | 19 }); |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 testStartStop(); | 376 testStartStop(); |
| 376 testGET(); | 377 testGET(); |
| 377 testPOST(true); | 378 testPOST(true); |
| 378 testPOST(false); | 379 testPOST(false); |
| 379 testReadInto(true); | 380 testReadInto(true); |
| 380 testReadInto(false); | 381 testReadInto(false); |
| 381 testReadShort(true); | 382 testReadShort(true); |
| 382 testReadShort(false); | 383 testReadShort(false); |
| 383 test404(); | 384 test404(); |
| 384 } | 385 } |
| OLD | NEW |