| 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 // VMOptions= | 5 // VMOptions= |
| 6 // VMOptions=--short_socket_read | 6 // VMOptions=--short_socket_read |
| 7 // VMOptions=--short_socket_write | 7 // VMOptions=--short_socket_write |
| 8 // VMOptions=--short_socket_read --short_socket_write | 8 // VMOptions=--short_socket_read --short_socket_write |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 | 110 |
| 111 postDataTest(message.codeUnits, | 111 postDataTest(message.codeUnits, |
| 112 'multipart/form-data', | 112 'multipart/form-data', |
| 113 'AaB03x', | 113 'AaB03x', |
| 114 [new FormField('submit-name', 'Larry'), | 114 [new FormField('submit-name', 'Larry'), |
| 115 new FormField('files', | 115 new FormField('files', |
| 116 'Content of file', | 116 'Content of file', |
| 117 contentType: 'text/plain', | 117 contentType: 'text/plain', |
| 118 filename: 'file1.txt')]); | 118 filename: 'file1.txt')]); |
| 119 |
| 119 // Similar test using Chrome posting. | 120 // Similar test using Chrome posting. |
| 120 message = [ | 121 message = [ |
| 121 45, 45, 45, 45, 45, 45, 87, 101, 98, 75, 105, 116, 70, 111, 114, 109, 66, | 122 45, 45, 45, 45, 45, 45, 87, 101, 98, 75, 105, 116, 70, 111, 114, 109, 66, |
| 122 111, 117, 110, 100, 97, 114, 121, 81, 83, 113, 108, 56, 107, 68, 65, 76, | 123 111, 117, 110, 100, 97, 114, 121, 81, 83, 113, 108, 56, 107, 68, 65, 76, |
| 123 77, 55, 116, 65, 107, 67, 49, 13, 10, 67, 111, 110, 116, 101, 110, 116, | 124 77, 55, 116, 65, 107, 67, 49, 13, 10, 67, 111, 110, 116, 101, 110, 116, |
| 124 45, 68, 105, 115, 112, 111, 115, 105, 116, 105, 111, 110, 58, 32, 102, | 125 45, 68, 105, 115, 112, 111, 115, 105, 116, 105, 111, 110, 58, 32, 102, |
| 125 111, 114, 109, 45, 100, 97, 116, 97, 59, 32, 110, 97, 109, 101, 61, 34, | 126 111, 114, 109, 45, 100, 97, 116, 97, 59, 32, 110, 97, 109, 101, 61, 34, |
| 126 115, 117, 98, 109, 105, 116, 45, 110, 97, 109, 101, 34, 13, 10, 13, 10, | 127 115, 117, 98, 109, 105, 116, 45, 110, 97, 109, 101, 34, 13, 10, 13, 10, |
| 127 84, 101, 115, 116, 13, 10, 45, 45, 45, 45, 45, 45, 87, 101, 98, 75, 105, | 128 84, 101, 115, 116, 13, 10, 45, 45, 45, 45, 45, 45, 87, 101, 98, 75, 105, |
| 128 116, 70, 111, 114, 109, 66, 111, 117, 110, 100, 97, 114, 121, 81, 83, 113, | 129 116, 70, 111, 114, 109, 66, 111, 117, 110, 100, 97, 114, 121, 81, 83, 113, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 postDataTest(message, | 192 postDataTest(message, |
| 192 'multipart/form-data', | 193 'multipart/form-data', |
| 193 '----WebKitFormBoundaryfe0EzV1aNysD1bPh', | 194 '----WebKitFormBoundaryfe0EzV1aNysD1bPh', |
| 194 [new FormField('name', 'øv')]); | 195 [new FormField('name', 'øv')]); |
| 195 } | 196 } |
| 196 | 197 |
| 197 | 198 |
| 198 void main() { | 199 void main() { |
| 199 testPostData(); | 200 testPostData(); |
| 200 } | 201 } |
| OLD | NEW |