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("dart:isolate"); |
6 #import("../../../../chat/http.dart"); | 7 #import("../../../../chat/http.dart"); |
7 #import("../../../../../lib/json/json.dart"); | 8 #import("../../../../../lib/json/json.dart"); |
8 #import("../../../../chat/chat_server_lib.dart"); | 9 #import("../../../../chat/chat_server_lib.dart"); |
9 | 10 |
10 | 11 |
11 class TestServerMain { | 12 class TestServerMain { |
12 TestServerMain() | 13 TestServerMain() |
13 : _statusPort = new ReceivePort(), | 14 : _statusPort = new ReceivePort(), |
14 _serverPort = null { | 15 _serverPort = null { |
15 new TestServer().spawn().then((SendPort port) { | 16 new TestServer().spawn().then((SendPort port) { |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 272 } |
272 | 273 |
273 | 274 |
274 void main() { | 275 void main() { |
275 testStartStop(); | 276 testStartStop(); |
276 testGET(); | 277 testGET(); |
277 testPOST(true); | 278 testPOST(true); |
278 testPOST(false); | 279 testPOST(false); |
279 test404(); | 280 test404(); |
280 } | 281 } |
OLD | NEW |