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

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

Issue 13841005: Rename DateTime constants to full names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « tests/corelib/date_time_test.dart ('k') | tests/standalone/io/http_date_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_advanced_test.dart
diff --git a/tests/standalone/io/http_advanced_test.dart b/tests/standalone/io/http_advanced_test.dart
index 76ffd8c059978e1e4899bb131a1c30d6d20ede48..1d4ca8976bdcaad848d4bc4437c66e08d51d7816 100644
--- a/tests/standalone/io/http_advanced_test.dart
+++ b/tests/standalone/io/http_advanced_test.dart
@@ -124,7 +124,7 @@ class TestServer {
// Set the "Expires" header using the expires property.
void _expires1Handler(HttpRequest request) {
var response = request.response;
- DateTime date = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
+ DateTime date = new DateTime.utc(1999, DateTime.JUNE, 11, 18, 46, 53, 0);
response.headers.expires = date;
Expect.equals(date, response.headers.expires);
response.close();
@@ -134,7 +134,7 @@ class TestServer {
void _expires2Handler(HttpRequest request) {
var response = request.response;
response.headers.set("Expires", "Fri, 11 Jun 1999 18:46:53 GMT");
- DateTime date = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
+ DateTime date = new DateTime.utc(1999, DateTime.JUNE, 11, 18, 46, 53, 0);
Expect.equals(date, response.headers.expires);
response.close();
}
@@ -170,7 +170,7 @@ class TestServer {
Expect.equals(0, request.cookies.length);
Cookie cookie1 = new Cookie("name1", "value1");
- DateTime date = new DateTime.utc(2014, DateTime.JAN, 5, 23, 59, 59, 0);
+ DateTime date = new DateTime.utc(2014, DateTime.JANUARY, 5, 23, 59, 59, 0);
cookie1.expires = date;
cookie1.domain = "www.example.com";
cookie1.httpOnly = true;
@@ -293,7 +293,7 @@ Future testExpires() {
Expect.equals(HttpStatus.OK, response.statusCode);
Expect.equals("Fri, 11 Jun 1999 18:46:53 GMT",
response.headers["expires"][0]);
- Expect.equals(new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0),
+ Expect.equals(new DateTime.utc(1999, DateTime.JUNE, 11, 18, 46, 53, 0),
response.headers.expires);
response.listen((_) { },
onDone: () {
@@ -380,7 +380,7 @@ Future testCookies() {
if (cookie.name == "name1") {
Expect.equals("value1", cookie.value);
DateTime date =
- new DateTime.utc(2014, DateTime.JAN, 5, 23, 59, 59, 0);
+ new DateTime.utc(2014, DateTime.JANUARY, 5, 23, 59, 59, 0);
Expect.equals(date, cookie.expires);
Expect.equals("www.example.com", cookie.domain);
Expect.isTrue(cookie.httpOnly);
« no previous file with comments | « tests/corelib/date_time_test.dart ('k') | tests/standalone/io/http_date_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698