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

Unified Diff: tests/standalone/io/http_headers_test.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/http_headers_test.dart
diff --git a/tests/standalone/io/http_headers_test.dart b/tests/standalone/io/http_headers_test.dart
index 444b0fd83552ff78092e062a167447d3c6de3249..826bd81f3bc801172545c3ee0efaec3b354bfc5c 100644
--- a/tests/standalone/io/http_headers_test.dart
+++ b/tests/standalone/io/http_headers_test.dart
@@ -54,9 +54,9 @@ void testMultiValue() {
}
void testDate() {
- Date date1 = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
+ DateTime date1 = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
String httpDate1 = "Fri, 11 Jun 1999 18:46:53 GMT";
- Date date2 = new Date.utc(2000, Date.AUG, 16, 12, 34, 56, 0);
+ DateTime date2 = new DateTime.utc(2000, DateTime.AUG, 16, 12, 34, 56, 0);
String httpDate2 = "Wed, 16 Aug 2000 12:34:56 GMT";
_HttpHeaders headers = new _HttpHeaders();
@@ -80,9 +80,9 @@ void testDate() {
}
void testExpires() {
- Date date1 = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
+ DateTime date1 = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
String httpDate1 = "Fri, 11 Jun 1999 18:46:53 GMT";
- Date date2 = new Date.utc(2000, Date.AUG, 16, 12, 34, 56, 0);
+ DateTime date2 = new DateTime.utc(2000, DateTime.AUG, 16, 12, 34, 56, 0);
String httpDate2 = "Wed, 16 Aug 2000 12:34:56 GMT";
_HttpHeaders headers = new _HttpHeaders();
@@ -106,9 +106,9 @@ void testExpires() {
}
void testIfModifiedSince() {
- Date date1 = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
+ DateTime date1 = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
String httpDate1 = "Fri, 11 Jun 1999 18:46:53 GMT";
- Date date2 = new Date.utc(2000, Date.AUG, 16, 12, 34, 56, 0);
+ DateTime date2 = new DateTime.utc(2000, DateTime.AUG, 16, 12, 34, 56, 0);
String httpDate2 = "Wed, 16 Aug 2000 12:34:56 GMT";
_HttpHeaders headers = new _HttpHeaders();
@@ -319,7 +319,7 @@ void testCookie() {
Cookie cookie;
cookie = new Cookie("name", "value");
Expect.equals("name=value", cookie.toString());
- Date date = new Date.utc(2014, Date.JAN, 5, 23, 59, 59, 0);
+ DateTime date = new DateTime.utc(2014, DateTime.JAN, 5, 23, 59, 59, 0);
cookie.expires = date;
checkCookie(cookie, "name=value"
"; Expires=Sun, 5 Jan 2014 23:59:59 GMT");
« no previous file with comments | « tests/standalone/io/http_date_test.dart ('k') | tests/standalone/io/secure_socket_bad_certificate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698