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

Side by Side Diff: tests/corelib/date_time_test.dart

Issue 219503002: Fix bad HttpDate.format. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/http_date.dart ('k') | tests/standalone/io/http_date_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/io/http_date.dart ('k') | tests/standalone/io/http_date_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698