| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 // Dart test program for DateTime. | 7 // Dart test program for DateTime. |
| 8 | 8 |
| 9 // Tests if the time moves eventually forward. | 9 // Tests if the time moves eventually forward. |
| 10 void testNow() { | 10 void testNow() { |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 Expect.isFalse(utcTime1.isUtc); | 901 Expect.isFalse(utcTime1.isUtc); |
| 902 Expect.equals(utcTime1, utcTime2); | 902 Expect.equals(utcTime1, utcTime2); |
| 903 Expect.equals(source1, utcTime1.toString()); | 903 Expect.equals(source1, utcTime1.toString()); |
| 904 Expect.equals(source2, utcTime1.toIso8601String()); | 904 Expect.equals(source2, utcTime1.toIso8601String()); |
| 905 } | 905 } |
| 906 } | 906 } |
| 907 test("2000-01-01", "12:00:00.000"); | 907 test("2000-01-01", "12:00:00.000"); |
| 908 test("-2000-01-01", "12:00:00.000"); | 908 test("-2000-01-01", "12:00:00.000"); |
| 909 test("1970-01-01", "00:00:00.000"); | 909 test("1970-01-01", "00:00:00.000"); |
| 910 test("1969-12-31", "23:59:59.999"); | 910 test("1969-12-31", "23:59:59.999"); |
| 911 test("1969-09-09", "00:09:09.009"); |
| 911 } | 912 } |
| 912 | 913 |
| 913 void main() { | 914 void main() { |
| 914 testNow(); | 915 testNow(); |
| 915 testValue(); | 916 testValue(); |
| 916 testConstructors(); | 917 testConstructors(); |
| 917 testUTCGetters(); | 918 testUTCGetters(); |
| 918 testLocalGetters(); | 919 testLocalGetters(); |
| 919 testChangeTimeZone(); | 920 testChangeTimeZone(); |
| 920 testSubAdd(); | 921 testSubAdd(); |
| 921 testUnderflowAndOverflow(); | 922 testUnderflowAndOverflow(); |
| 922 testDateStrings(); | 923 testDateStrings(); |
| 923 testEquivalentYears(); | 924 testEquivalentYears(); |
| 924 testExtremes(); | 925 testExtremes(); |
| 925 testFarAwayDates(); | 926 testFarAwayDates(); |
| 926 testWeekday(); | 927 testWeekday(); |
| 927 testToStrings(); | 928 testToStrings(); |
| 928 } | 929 } |
| OLD | NEW |