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

Unified Diff: tests/corelib/date_time_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 | « sdk/lib/core/date_time.dart ('k') | tests/standalone/io/http_advanced_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/date_time_test.dart
diff --git a/tests/corelib/date_time_test.dart b/tests/corelib/date_time_test.dart
index 7f80e68c99853836482e6f1d4cf2037fece817e8..805d5c6faf31629adacf2beeb853d19a26c1eedb 100644
--- a/tests/corelib/date_time_test.dart
+++ b/tests/corelib/date_time_test.dart
@@ -782,32 +782,32 @@ class DateTest {
static void testWeekday() {
// 2011-10-06 is Summertime.
var d = new DateTime(2011, 10, 6, 0, 45, 37, 0);
- Expect.equals(DateTime.THU, d.weekday);
+ Expect.equals(DateTime.THURSDAY, d.weekday);
d = new DateTime.utc(2011, 10, 6, 0, 45, 37, 0);
- Expect.equals(DateTime.THU, d.weekday);
+ Expect.equals(DateTime.THURSDAY, d.weekday);
d = new DateTime(2011, 10, 5, 23, 45, 37, 0);
- Expect.equals(DateTime.WED, d.weekday);
+ Expect.equals(DateTime.WEDNESDAY, d.weekday);
d = new DateTime.utc(2011, 10, 5, 23, 45, 37, 0);
- Expect.equals(DateTime.WED, d.weekday);
+ Expect.equals(DateTime.WEDNESDAY, d.weekday);
// 1970-01-01 is Wintertime.
d = new DateTime(1970, 1, 1, 0, 0, 0, 1);
- Expect.equals(DateTime.THU, d.weekday);
+ Expect.equals(DateTime.THURSDAY, d.weekday);
d = new DateTime.utc(1970, 1, 1, 0, 0, 0, 1);
- Expect.equals(DateTime.THU, d.weekday);
+ Expect.equals(DateTime.THURSDAY, d.weekday);
d = new DateTime.utc(1969, 12, 31, 23, 59, 59, 999);
- Expect.equals(DateTime.WED, d.weekday);
+ Expect.equals(DateTime.WEDNESDAY, d.weekday);
d = new DateTime(1969, 12, 31, 23, 59, 59, 999);
- Expect.equals(DateTime.WED, d.weekday);
+ Expect.equals(DateTime.WEDNESDAY, d.weekday);
d = new DateTime(2011, 10, 4, 23, 45, 37, 0);
- Expect.equals(DateTime.TUE, d.weekday);
+ Expect.equals(DateTime.TUESDAY, d.weekday);
d = new DateTime(2011, 10, 3, 23, 45, 37, 0);
- Expect.equals(DateTime.MON, d.weekday);
+ Expect.equals(DateTime.MONDAY, d.weekday);
d = new DateTime(2011, 10, 2, 23, 45, 37, 0);
- Expect.equals(DateTime.SUN, d.weekday);
+ Expect.equals(DateTime.SUNDAY, d.weekday);
d = new DateTime(2011, 10, 1, 23, 45, 37, 0);
- Expect.equals(DateTime.SAT, d.weekday);
+ Expect.equals(DateTime.SATURDAY, d.weekday);
d = new DateTime(2011, 9, 30, 23, 45, 37, 0);
- Expect.equals(DateTime.FRI, d.weekday);
+ Expect.equals(DateTime.FRIDAY, d.weekday);
}
static void testMain() {
« no previous file with comments | « sdk/lib/core/date_time.dart ('k') | tests/standalone/io/http_advanced_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698