From 251cb020ec00ed2a03f79a9e5f940cbc0b1568c2 Mon Sep 17 00:00:00 2001 From: "floitsch@google.com" Date: Thu, 6 Oct 2011 15:28:14 +0000 Subject: [PATCH] Add comments to DateTimeTest. R=ngeoffray@google.com Review URL: https://chromereviews.googleplex.com/3540014 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@131 260f80e4-7a28-3924-810f-c04153c831b5 --- tests/corelib/src/DateTimeTest.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/corelib/src/DateTimeTest.dart b/tests/corelib/src/DateTimeTest.dart index 78c39760fe3..98408728399 100644 --- a/tests/corelib/src/DateTimeTest.dart +++ b/tests/corelib/src/DateTimeTest.dart @@ -332,6 +332,7 @@ class DateTest { } static void testWeekday() { + // 2011-10-06 is Summertime. var d = new Date(2011, 10, 6, 0, 45, 37, 0); Expect.equals(Date.THU, d.weekday); d = new Date.withTimeZone(2011, 10, 6, 0, 45, 37, 0, const TimeZone.utc()); @@ -340,6 +341,7 @@ class DateTest { Expect.equals(Date.WED, d.weekday); d = new Date.withTimeZone(2011, 10, 5, 23, 45, 37, 0, const TimeZone.utc()); Expect.equals(Date.WED, d.weekday); + // 1970-01-01 is Wintertime. d = new Date(1970, 1, 1, 0, 0, 0, 1); Expect.equals(Date.THU, d.weekday); d = new Date.withTimeZone(1970, 1, 1, 0, 0, 0, 1, const TimeZone.utc());