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

Unified Diff: tests/corelib/date_time9_test.dart

Issue 2984063002: Migrate test block 5 to Dart 2.0. (Closed)
Patch Set: merge with head Created 3 years, 5 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_time8_test.dart ('k') | tests/corelib/date_time_parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/date_time9_test.dart
diff --git a/tests/corelib/date_time9_test.dart b/tests/corelib/date_time9_test.dart
deleted file mode 100644
index 9475775e7f53d2bf628393586c515f9cc25eac94..0000000000000000000000000000000000000000
--- a/tests/corelib/date_time9_test.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import "package:expect/expect.dart";
-
-main() {
- var dt = new DateTime.now();
- Expect.isTrue(dt is Comparable);
-
- var dt2 = new DateTime.fromMillisecondsSinceEpoch(100);
- var dt3 = new DateTime.fromMillisecondsSinceEpoch(200, isUtc: true);
- var dt3b = new DateTime.fromMillisecondsSinceEpoch(200);
- var dt4 = new DateTime.fromMillisecondsSinceEpoch(300);
- var dt5 = new DateTime.fromMillisecondsSinceEpoch(400, isUtc: true);
- var dt5b = new DateTime.fromMillisecondsSinceEpoch(400);
-
- Expect.isTrue(dt2.compareTo(dt2) == 0);
- Expect.isTrue(dt3.compareTo(dt3) == 0);
- Expect.isTrue(dt3b.compareTo(dt3b) == 0);
- Expect.isTrue(dt4.compareTo(dt4) == 0);
- Expect.isTrue(dt5.compareTo(dt5) == 0);
- Expect.isTrue(dt5b.compareTo(dt5b) == 0);
-
- // Time zones don't have any effect.
- Expect.isTrue(dt3.compareTo(dt3b) == 0);
- Expect.isTrue(dt5.compareTo(dt5b) == 0);
-
- Expect.isTrue(dt2.compareTo(dt3) < 0);
- Expect.isTrue(dt3.compareTo(dt4) < 0);
- Expect.isTrue(dt4.compareTo(dt5) < 0);
-
- Expect.isTrue(dt2.compareTo(dt3b) < 0);
- Expect.isTrue(dt4.compareTo(dt5b) < 0);
-
- Expect.isTrue(dt3.compareTo(dt2) > 0);
- Expect.isTrue(dt4.compareTo(dt3) > 0);
- Expect.isTrue(dt5.compareTo(dt4) > 0);
-
- Expect.isTrue(dt3b.compareTo(dt2) > 0);
- Expect.isTrue(dt5b.compareTo(dt4) > 0);
-}
« no previous file with comments | « tests/corelib/date_time8_test.dart ('k') | tests/corelib/date_time_parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698