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

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

Issue 10541050: 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 TimeZone utc = new TimeZone.utc(); 292 Date date = new Date(2014, Date.JAN, 5, 23, 59, 59, 0, isUtc: true);
293 Date date = new Date.withTimeZone(2014, Date.JAN, 5, 23, 59, 59, 0, utc);
294 cookie.expires = date; 293 cookie.expires = date;
295 checkCookie(cookie, "name=value" 294 checkCookie(cookie, "name=value"
296 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT"); 295 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT");
297 cookie.maxAge = 567; 296 cookie.maxAge = 567;
298 checkCookie(cookie, "name=value" 297 checkCookie(cookie, "name=value"
299 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT" 298 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT"
300 "; Max-Age=567"); 299 "; Max-Age=567");
301 cookie.domain = "example.com"; 300 cookie.domain = "example.com";
302 checkCookie(cookie, "name=value" 301 checkCookie(cookie, "name=value"
303 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT" 302 "; Expires=Sun, 5 Jan 2014 23:59:59 GMT"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 testMultiValue(); 364 testMultiValue();
366 testExpires(); 365 testExpires();
367 testHost(); 366 testHost();
368 testEnumeration(); 367 testEnumeration();
369 testHeaderValue(); 368 testHeaderValue();
370 testContentType(); 369 testContentType();
371 testContentTypeCache(); 370 testContentTypeCache();
372 testCookie(); 371 testCookie();
373 testInvalidCookie(); 372 testInvalidCookie();
374 } 373 }
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