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

Unified Diff: tests/standalone/io/http_advanced_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
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/http_connection_close_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 cb8245ff62ac8cb33032e51dbb8f6fe4a836d014..d6e1ad416fc68ebcf2d3e81d10685e5d8f45c310 100644
--- a/tests/standalone/io/http_advanced_test.dart
+++ b/tests/standalone/io/http_advanced_test.dart
@@ -118,7 +118,7 @@ class TestServer {
// Set the "Expires" header using the expires property.
void _expires1Handler(HttpRequest request, HttpResponse response) {
- Date date = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
+ DateTime date = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
response.headers.expires = date;
Expect.equals(date, response.headers.expires);
response.outputStream.close();
@@ -127,7 +127,7 @@ class TestServer {
// Set the "Expires" header.
void _expires2Handler(HttpRequest request, HttpResponse response) {
response.headers.set("Expires", "Fri, 11 Jun 1999 18:46:53 GMT");
- Date date = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
+ DateTime date = new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0);
Expect.equals(date, response.headers.expires);
response.outputStream.close();
}
@@ -160,7 +160,7 @@ class TestServer {
Expect.equals(0, request.cookies.length);
Cookie cookie1 = new Cookie("name1", "value1");
- 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);
cookie1.expires = date;
cookie1.domain = "www.example.com";
cookie1.httpOnly = true;
@@ -311,7 +311,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 Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0),
+ Expect.equals(new DateTime.utc(1999, DateTime.JUN, 11, 18, 46, 53, 0),
response.headers.expires);
response.inputStream.onData = response.inputStream.read;
response.inputStream.onClosed = () {
@@ -405,7 +405,7 @@ Future testCookies() {
response.cookies.forEach((cookie) {
if (cookie.name == "name1") {
Expect.equals("value1", cookie.value);
- 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);
Expect.equals(date, cookie.expires);
Expect.equals("www.example.com", cookie.domain);
Expect.isTrue(cookie.httpOnly);
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/http_connection_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698