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

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

Issue 10532068: Revert "Remove deprecated classes and functions in Date." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/lib/date.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 #source("../../../runtime/bin/input_stream.dart"); 5 #source("../../../runtime/bin/input_stream.dart");
6 #source("../../../runtime/bin/output_stream.dart"); 6 #source("../../../runtime/bin/output_stream.dart");
7 #source("../../../runtime/bin/chunked_stream.dart"); 7 #source("../../../runtime/bin/chunked_stream.dart");
8 #source("../../../runtime/bin/string_stream.dart"); 8 #source("../../../runtime/bin/string_stream.dart");
9 #source("../../../runtime/bin/stream_util.dart"); 9 #source("../../../runtime/bin/stream_util.dart");
10 #source("../../../runtime/bin/http.dart"); 10 #source("../../../runtime/bin/http.dart");
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 void checkCookie(cookie, s) { 283 void checkCookie(cookie, s) {
284 Expect.equals(s, cookie.toString()); 284 Expect.equals(s, cookie.toString());
285 var c = new _Cookie.fromSetCookieValue(s); 285 var c = new _Cookie.fromSetCookieValue(s);
286 checkCookiesEquals(cookie, c); 286 checkCookiesEquals(cookie, c);
287 } 287 }
288 288
289 Cookie cookie; 289 Cookie cookie;
290 cookie = new Cookie("name", "value"); 290 cookie = new Cookie("name", "value");
291 Expect.equals("name=value", cookie.toString()); 291 Expect.equals("name=value", cookie.toString());
292 Date date = new Date(2014, Date.JAN, 5, 23, 59, 59, 0, isUtc: true); 292 TimeZone utc = new TimeZone.utc();
293 Date date = new Date.withTimeZone(2014, Date.JAN, 5, 23, 59, 59, 0, utc);
293 cookie.expires = date; 294 cookie.expires = date;
294 checkCookie(cookie, "name=value" 295 checkCookie(cookie, "name=value"
295 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT"); 296 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT");
296 cookie.maxAge = 567; 297 cookie.maxAge = 567;
297 checkCookie(cookie, "name=value" 298 checkCookie(cookie, "name=value"
298 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT" 299 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT"
299 "; Max-Age=567"); 300 "; Max-Age=567");
300 cookie.domain = "example.com"; 301 cookie.domain = "example.com";
301 checkCookie(cookie, "name=value" 302 checkCookie(cookie, "name=value"
302 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT" 303 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 testMultiValue(); 365 testMultiValue();
365 testExpires(); 366 testExpires();
366 testHost(); 367 testHost();
367 testEnumeration(); 368 testEnumeration();
368 testHeaderValue(); 369 testHeaderValue();
369 testContentType(); 370 testContentType();
370 testContentTypeCache(); 371 testContentTypeCache();
371 testCookie(); 372 testCookie();
372 testInvalidCookie(); 373 testInvalidCookie();
373 } 374 }
OLDNEW
« no previous file with comments | « runtime/lib/date.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698