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

Unified Diff: tests/corelib/date_time6_test.dart

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 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/date_time5_test.dart ('k') | tests/corelib/date_time_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/date_time6_test.dart
diff --git a/tests/corelib/date_time6_test.dart b/tests/corelib/date_time6_test.dart
index f2db138a15103c0de85a8d95102af94ffe7bf58e..c4a0b02617b8a32e9af3751583cf30c2181d0c82 100644
--- a/tests/corelib/date_time6_test.dart
+++ b/tests/corelib/date_time6_test.dart
@@ -5,8 +5,8 @@
// Test Date comparison operators.
main() {
- var d = new Date.fromEpoch(0, isUtc: true);
- var d2 = new Date.fromEpoch(1, isUtc: true);
+ var d = new Date.fromMillisecondsSinceEpoch(0, isUtc: true);
+ var d2 = new Date.fromMillisecondsSinceEpoch(1, isUtc: true);
Expect.isTrue(d < d2);
Expect.isTrue(d <= d2);
Expect.isTrue(d2 > d);
@@ -16,8 +16,8 @@ main() {
Expect.isFalse(d > d2);
Expect.isFalse(d >= d2);
- d = new Date.fromEpoch(-1, isUtc: true);
- d2 = new Date.fromEpoch(0, isUtc: true);
+ d = new Date.fromMillisecondsSinceEpoch(-1, isUtc: true);
+ d2 = new Date.fromMillisecondsSinceEpoch(0, isUtc: true);
Expect.isTrue(d < d2);
Expect.isTrue(d <= d2);
Expect.isTrue(d2 > d);
« no previous file with comments | « tests/corelib/date_time5_test.dart ('k') | tests/corelib/date_time_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698