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

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

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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_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
===================================================================
--- tests/standalone/io/http_advanced_test.dart (revision 13683)
+++ tests/standalone/io/http_advanced_test.dart (working copy)
@@ -117,7 +117,7 @@
// Set the "Expires" header using the expires property.
void _expires1Handler(HttpRequest request, HttpResponse response) {
- Date date = new Date(1999, Date.JUN, 11, 18, 46, 53, 0, isUtc: true);
+ Date date = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
response.headers.expires = date;
Expect.equals(date, response.headers.expires);
response.outputStream.close();
@@ -126,7 +126,7 @@
// 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(1999, Date.JUN, 11, 18, 46, 53, 0, isUtc: true);
+ Date date = new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0);
Expect.equals(date, response.headers.expires);
response.outputStream.close();
}
@@ -159,7 +159,7 @@
Expect.equals(0, request.cookies.length);
Cookie cookie1 = new Cookie("name1", "value1");
- 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);
cookie1.expires = date;
cookie1.domain = "www.example.com";
cookie1.httpOnly = true;
@@ -294,7 +294,7 @@
Expect.equals(HttpStatus.OK, response.statusCode);
Expect.equals("Fri, 11 Jun 1999 18:46:53 GMT",
response.headers["expires"][0]);
- Expect.equals(new Date(1999, Date.JUN, 11, 18, 46, 53, 0, isUtc: true),
+ Expect.equals(new Date.utc(1999, Date.JUN, 11, 18, 46, 53, 0),
response.headers.expires);
responses++;
if (responses == 2) {
@@ -376,7 +376,7 @@
response.cookies.forEach((cookie) {
if (cookie.name == "name1") {
Expect.equals("value1", cookie.value);
- 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);
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_date_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698