| 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 // OtherResources=certificates/server_chain.pem |
| 6 // OtherResources=certificates/server_key.pem |
| 7 // OtherResources=certificates/trusted_certs.pem |
| 8 |
| 5 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 6 import "package:path/path.dart"; | 10 import "package:path/path.dart"; |
| 7 import "package:async_helper/async_helper.dart"; | 11 import "package:async_helper/async_helper.dart"; |
| 8 | 12 |
| 9 import "dart:async"; | 13 import "dart:async"; |
| 10 import "dart:io"; | 14 import "dart:io"; |
| 11 import "dart:typed_data"; | 15 import "dart:typed_data"; |
| 12 | 16 |
| 13 String localFile(path) => Platform.script.resolve(path).toFilePath(); | 17 String localFile(path) => Platform.script.resolve(path).toFilePath(); |
| 14 | 18 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 Expect.fail('Unexpected error: $e'); | 75 Expect.fail('Unexpected error: $e'); |
| 72 }, onDone: () { | 76 }, onDone: () { |
| 73 Expect.equals(body.length, DATA.length); | 77 Expect.equals(body.length, DATA.length); |
| 74 for (int i = 0; i < body.length; i++) { | 78 for (int i = 0; i < body.length; i++) { |
| 75 Expect.equals(body[i], DATA[i]); | 79 Expect.equals(body[i], DATA[i]); |
| 76 } | 80 } |
| 77 server.close(); | 81 server.close(); |
| 78 asyncEnd(); | 82 asyncEnd(); |
| 79 }); | 83 }); |
| 80 } | 84 } |
| OLD | NEW |