Index: tests/standalone/io/http_headers_test.dart |
=================================================================== |
--- tests/standalone/io/http_headers_test.dart (revision 13683) |
+++ tests/standalone/io/http_headers_test.dart (working copy) |
@@ -52,9 +52,9 @@ |
} |
void testDate() { |
- Date date1 = new Date(1999, Date.JUN, 11, 18, 46, 53, 0, isUtc: true); |
+ Date date1 = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0); |
String httpDate1 = "Fri, 11 Jun 1999 18:46:53 GMT"; |
- Date date2 = new Date(2000, Date.AUG, 16, 12, 34, 56, 0, isUtc: true); |
+ Date date2 = new Date.utc(2000, Date.AUG, 16, 12, 34, 56, 0); |
String httpDate2 = "Wed, 16 Aug 2000 12:34:56 GMT"; |
_HttpHeaders headers = new _HttpHeaders(); |
@@ -78,9 +78,9 @@ |
} |
void testExpires() { |
- Date date1 = new Date(1999, Date.JUN, 11, 18, 46, 53, 0, isUtc: true); |
+ Date date1 = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0); |
String httpDate1 = "Fri, 11 Jun 1999 18:46:53 GMT"; |
- Date date2 = new Date(2000, Date.AUG, 16, 12, 34, 56, 0, isUtc: true); |
+ Date date2 = new Date.utc(2000, Date.AUG, 16, 12, 34, 56, 0); |
String httpDate2 = "Wed, 16 Aug 2000 12:34:56 GMT"; |
_HttpHeaders headers = new _HttpHeaders(); |
@@ -104,9 +104,9 @@ |
} |
void testIfModifiedSince() { |
- Date date1 = new Date(1999, Date.JUN, 11, 18, 46, 53, 0, isUtc: true); |
+ Date date1 = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0); |
String httpDate1 = "Fri, 11 Jun 1999 18:46:53 GMT"; |
- Date date2 = new Date(2000, Date.AUG, 16, 12, 34, 56, 0, isUtc: true); |
+ Date date2 = new Date.utc(2000, Date.AUG, 16, 12, 34, 56, 0); |
String httpDate2 = "Wed, 16 Aug 2000 12:34:56 GMT"; |
_HttpHeaders headers = new _HttpHeaders(); |
@@ -317,7 +317,7 @@ |
Cookie cookie; |
cookie = new Cookie("name", "value"); |
Expect.equals("name=value", cookie.toString()); |
- Date date = new Date(2014, Date.JAN, 5, 23, 59, 59, 0, isUtc: true); |
+ Date date = new Date.utc(2014, Date.JAN, 5, 23, 59, 59, 0); |
cookie.expires = date; |
checkCookie(cookie, "name=value" |
"; Expires=Sun, 5 Jan 2014 23:59:59 GMT"); |