| 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:math'); | 5 #import('dart:math'); |
| 6 | 6 |
| 7 #source("../../../runtime/bin/input_stream.dart"); | 7 #source("../../../runtime/bin/input_stream.dart"); |
| 8 #source("../../../runtime/bin/output_stream.dart"); | 8 #source("../../../runtime/bin/output_stream.dart"); |
| 9 #source("../../../runtime/bin/chunked_stream.dart"); | 9 #source("../../../runtime/bin/chunked_stream.dart"); |
| 10 #source("../../../runtime/bin/string_stream.dart"); | 10 #source("../../../runtime/bin/string_stream.dart"); |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 } | 381 } |
| 382 | 382 |
| 383 void testInvalidCookie() { | 383 void testInvalidCookie() { |
| 384 Expect.throws(() => new _Cookie.fromSetCookieValue("")); | 384 Expect.throws(() => new _Cookie.fromSetCookieValue("")); |
| 385 Expect.throws(() => new _Cookie.fromSetCookieValue("=")); | 385 Expect.throws(() => new _Cookie.fromSetCookieValue("=")); |
| 386 Expect.throws(() => new _Cookie.fromSetCookieValue("=xxx")); | 386 Expect.throws(() => new _Cookie.fromSetCookieValue("=xxx")); |
| 387 Expect.throws(() => new _Cookie.fromSetCookieValue("xxx")); | 387 Expect.throws(() => new _Cookie.fromSetCookieValue("xxx")); |
| 388 Expect.throws(() => new _Cookie.fromSetCookieValue("xxx=yyy; expires=12 jan 20
13")); | 388 Expect.throws(() => new _Cookie.fromSetCookieValue("xxx=yyy; expires=12 jan 20
13")); |
| 389 } | 389 } |
| 390 | 390 |
| 391 void testHeaderLists() { |
| 392 HttpHeaders.GENERAL_HEADERS.forEach((x) => null); |
| 393 HttpHeaders.ENTITY_HEADERS.forEach((x) => null); |
| 394 HttpHeaders.RESPONSE_HEADERS.forEach((x) => null); |
| 395 HttpHeaders.REQUEST_HEADERS.forEach((x) => null); |
| 396 } |
| 397 |
| 391 main() { | 398 main() { |
| 392 testMultiValue(); | 399 testMultiValue(); |
| 393 testDate(); | 400 testDate(); |
| 394 testExpires(); | 401 testExpires(); |
| 395 testIfModifiedSince(); | 402 testIfModifiedSince(); |
| 396 testHost(); | 403 testHost(); |
| 397 testEnumeration(); | 404 testEnumeration(); |
| 398 testHeaderValue(); | 405 testHeaderValue(); |
| 399 testContentType(); | 406 testContentType(); |
| 400 testContentTypeCache(); | 407 testContentTypeCache(); |
| 401 testCookie(); | 408 testCookie(); |
| 402 testInvalidCookie(); | 409 testInvalidCookie(); |
| 410 testHeaderLists(); |
| 403 } | 411 } |
| OLD | NEW |