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

Unified Diff: tests/corelib/date_time_test.dart

Issue 10920010: Check if the decomposed date is in the correct range. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/corelib/corelib.status ('k') | no next file » | 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 80c8bc125c2d24674b0658147052a24aac348311..3ea6e58f6f3095b8e88efe6178220be0da5672fd 100644
--- a/tests/corelib/date_time_test.dart
+++ b/tests/corelib/date_time_test.dart
@@ -259,11 +259,16 @@ class DateTest {
Expect.throws(() => new Date.fromMillisecondsSinceEpoch(-8640000000000001,
isUtc: true));
Expect.throws(() => new Date.fromMillisecondsSinceEpoch(8640000000000001));
- Expect.throws(
- () => new Date.fromMillisecondsSinceEpoch(-8640000000000001));
+ Expect.throws(() => new Date.fromMillisecondsSinceEpoch(-8640000000000001));
dt = new Date.fromMillisecondsSinceEpoch(8640000000000000);
Expect.throws(() => new Date(dt.year, dt.month, dt.day,
dt.hour, dt.minute, 0, 1));
+ dt = new Date.fromMillisecondsSinceEpoch(8640000000000000, isUtc: true);
+ Expect.throws(() => new Date(dt.year, dt.month, dt.day,
+ dt.hour, dt.minute, 0, 1, isUtc: true));
+ dt = new Date.fromMillisecondsSinceEpoch(-8640000000000000);
+ Expect.throws(() => new Date(dt.year, dt.month, dt.day,
+ dt.hour, dt.minute, 0, -1));
dt = new Date.fromMillisecondsSinceEpoch(-8640000000000000, isUtc: true);
Expect.throws(() => new Date(dt.year, dt.month, dt.day,
dt.hour, dt.minute, 0, -1, isUtc: true));
« no previous file with comments | « tests/corelib/corelib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698