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

Unified Diff: tests/corelib/date_time5_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
Index: tests/corelib/date_time5_test.dart
===================================================================
--- tests/corelib/date_time5_test.dart (revision 13392)
+++ tests/corelib/date_time5_test.dart (working copy)
@@ -23,7 +23,7 @@
Expect.equals(0, d.second);
Expect.equals(0, d.millisecond);
- d = new Date(1970, 3);
+ d = new Date(1970, month: 3);
Expect.equals(1970, d.year);
Expect.equals(3, d.month);
Expect.equals(1, d.day);
@@ -32,7 +32,7 @@
Expect.equals(0, d.second);
Expect.equals(0, d.millisecond);
- d = new Date(1970, 3, hour: 11);
+ d = new Date(1970, month: 3, hour: 11);
Expect.equals(1970, d.year);
Expect.equals(3, d.month);
Expect.equals(1, d.day);
@@ -41,7 +41,7 @@
Expect.equals(0, d.second);
Expect.equals(0, d.millisecond);
- d = new Date(0, 12, 24, minute: 12);
+ d = new Date(0, month: 12, day: 24, minute: 12);
Expect.equals(0, d.year);
Expect.equals(12, d.month);
Expect.equals(24, d.day);
@@ -50,7 +50,7 @@
Expect.equals(0, d.second);
Expect.equals(0, d.millisecond);
- d = new Date(-1, 2, 2, 3, millisecond: 4);
+ d = new Date(-1, month: 2, day: 2, hour: 3, millisecond: 4);
Expect.equals(-1, d.year);
Expect.equals(2, d.month);
Expect.equals(2, d.day);
@@ -59,7 +59,7 @@
Expect.equals(0, d.second);
Expect.equals(4, d.millisecond);
- d = new Date(-1, 2, 2, 3, second: 4);
+ d = new Date(-1, month: 2, day: 2, hour: 3, second: 4);
Expect.equals(-1, d.year);
Expect.equals(2, d.month);
Expect.equals(2, d.day);

Powered by Google App Engine
This is Rietveld 408576698