| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // VMOptions= | 5 // VMOptions=--trace_shutdown |
| 6 // VMOptions=--short_socket_read | 6 // VMOptions=--trace_shutdown --short_socket_read |
| 7 // VMOptions=--short_socket_write | 7 // VMOptions=--trace_shutdown --short_socket_write |
| 8 // VMOptions=--short_socket_read --short_socket_write | 8 // VMOptions=--trace_shutdown --short_socket_read --short_socket_write |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| 11 import "dart:isolate"; | 11 import "dart:isolate"; |
| 12 import "dart:io"; | 12 import "dart:io"; |
| 13 | 13 |
| 14 class TestServerMain { | 14 class TestServerMain { |
| 15 TestServerMain() | 15 TestServerMain() |
| 16 : _statusPort = new ReceivePort(), | 16 : _statusPort = new ReceivePort(), |
| 17 _serverPort = null; | 17 _serverPort = null; |
| 18 | 18 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 320 } |
| 321 | 321 |
| 322 void main() { | 322 void main() { |
| 323 testStartStop(); | 323 testStartStop(); |
| 324 testGET(); | 324 testGET(); |
| 325 testPOST(true); | 325 testPOST(true); |
| 326 testPOST(false); | 326 testPOST(false); |
| 327 test404(); | 327 test404(); |
| 328 testReasonPhrase(); | 328 testReasonPhrase(); |
| 329 } | 329 } |
| OLD | NEW |