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

Unified Diff: tests/corelib_strong/date_time5_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_strong/date_time4_test.dart ('k') | tests/corelib_strong/date_time6_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/date_time5_test.dart
diff --git a/tests/corelib_strong/date_time5_test.dart b/tests/corelib_strong/date_time5_test.dart
deleted file mode 100644
index abf893d51e1d27f18365e74a64ce38d732c17af8..0000000000000000000000000000000000000000
--- a/tests/corelib_strong/date_time5_test.dart
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 2012, 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";
-
-// Test DateTime constructor with optional arguments.
-
-main() {
- var d = new DateTime(2012);
- Expect.equals(2012, d.year);
- Expect.equals(1, d.month);
- Expect.equals(1, d.day);
- Expect.equals(0, d.hour);
- Expect.equals(0, d.minute);
- Expect.equals(0, d.second);
- Expect.equals(0, d.millisecond);
-
- d = new DateTime(2012, 1, 28);
- Expect.equals(2012, d.year);
- Expect.equals(1, d.month);
- Expect.equals(28, d.day);
- Expect.equals(0, d.hour);
- Expect.equals(0, d.minute);
- Expect.equals(0, d.second);
- Expect.equals(0, d.millisecond);
-
- d = new DateTime(1970, 3);
- Expect.equals(1970, d.year);
- Expect.equals(3, d.month);
- Expect.equals(1, d.day);
- Expect.equals(0, d.hour);
- Expect.equals(0, d.minute);
- Expect.equals(0, d.second);
- Expect.equals(0, d.millisecond);
-
- d = new DateTime(1970, 3, 1, 11);
- Expect.equals(1970, d.year);
- Expect.equals(3, d.month);
- Expect.equals(1, d.day);
- Expect.equals(11, d.hour);
- Expect.equals(0, d.minute);
- Expect.equals(0, d.second);
- Expect.equals(0, d.millisecond);
-
- d = new DateTime(0, 12, 24, 0, 12);
- Expect.equals(0, d.year);
- Expect.equals(12, d.month);
- Expect.equals(24, d.day);
- Expect.equals(0, d.hour);
- Expect.equals(12, d.minute);
- Expect.equals(0, d.second);
- Expect.equals(0, d.millisecond);
-
- d = new DateTime(-1, 2, 2, 3, 0, 0, 4);
- Expect.equals(-1, d.year);
- Expect.equals(2, d.month);
- Expect.equals(2, d.day);
- Expect.equals(3, d.hour);
- Expect.equals(0, d.minute);
- Expect.equals(0, d.second);
- Expect.equals(4, d.millisecond);
-
- d = new DateTime(-1, 2, 2, 3, 0, 4);
- Expect.equals(-1, d.year);
- Expect.equals(2, d.month);
- Expect.equals(2, d.day);
- Expect.equals(3, d.hour);
- Expect.equals(0, d.minute);
- Expect.equals(4, d.second);
- Expect.equals(0, d.millisecond);
-
- d = new DateTime(2012, 5, 15, 13, 21, 33, 12);
- Expect.equals(2012, d.year);
- Expect.equals(5, d.month);
- Expect.equals(15, d.day);
- Expect.equals(13, d.hour);
- Expect.equals(21, d.minute);
- Expect.equals(33, d.second);
- Expect.equals(12, d.millisecond);
-}
« no previous file with comments | « tests/corelib_strong/date_time4_test.dart ('k') | tests/corelib_strong/date_time6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698