| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("http_test.dart"); | 5 #library("http_test.dart"); |
| 6 #import("../../../chat/http.dart"); | 6 #import("../../../../chat/http.dart"); |
| 7 #import("../../../../client/json/dart_json.dart"); | 7 #import("../../../../../client/json/dart_json.dart"); |
| 8 #import("../../../chat/chat_server_lib.dart"); | 8 #import("../../../../chat/chat_server_lib.dart"); |
| 9 | 9 |
| 10 | 10 |
| 11 class TestServerMain { | 11 class TestServerMain { |
| 12 TestServerMain() | 12 TestServerMain() |
| 13 : _statusPort = new ReceivePort(), | 13 : _statusPort = new ReceivePort(), |
| 14 _serverPort = null { | 14 _serverPort = null { |
| 15 new TestServer().spawn().then((SendPort port) { | 15 new TestServer().spawn().then((SendPort port) { |
| 16 _serverPort = port; | 16 _serverPort = port; |
| 17 }); | 17 }); |
| 18 } | 18 } |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 | 281 |
| 282 | 282 |
| 283 void main() { | 283 void main() { |
| 284 testStartStop(); | 284 testStartStop(); |
| 285 testGET(); | 285 testGET(); |
| 286 testPOST(true); | 286 testPOST(true); |
| 287 testPOST(false); | 287 testPOST(false); |
| 288 test404(); | 288 test404(); |
| 289 } | 289 } |
| OLD | NEW |