| 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 import "dart:isolate"; | 5 import "dart:isolate"; |
| 6 import "dart:io"; | 6 import "dart:io"; |
| 7 | 7 |
| 8 void testNoBody(int totalConnections, bool explicitContentLength) { | 8 void testNoBody(int totalConnections, bool explicitContentLength) { |
| 9 HttpServer server = new HttpServer(); | 9 HttpServer server = new HttpServer(); |
| 10 server.onError = (e) => Expect.fail("Unexpected error $e"); | 10 server.onError = (e) => Expect.fail("Unexpected error $e"); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 server.close(); | 186 server.close(); |
| 187 }; | 187 }; |
| 188 }; | 188 }; |
| 189 } | 189 } |
| 190 | 190 |
| 191 void main() { | 191 void main() { |
| 192 testNoBody(5, false); | 192 testNoBody(5, false); |
| 193 testNoBody(5, true); | 193 testNoBody(5, true); |
| 194 testBody(5, false); | 194 testBody(5, false); |
| 195 testBody(5, true); | 195 testBody(5, true); |
| 196 testBodyChunked(5, false); | 196 // These tests can fail or timeout on Windows, issue 7562. |
| 197 testBodyChunked(5, true); | 197 if (Platform.operatingSystem != 'windows') { |
| 198 testBodyChunked(5, false); |
| 199 testBodyChunked(5, true); |
| 200 } |
| 198 testHttp10(); | 201 testHttp10(); |
| 199 } | 202 } |
| OLD | NEW |