Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: tests/standalone/io/http_headers_test.dart

Issue 10911120: Cleanup and fixes to some dart:io files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/websocket_impl.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « runtime/bin/websocket_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698