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_2/date_time4_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 unified diff | Download patch
« no previous file with comments | « tests/corelib_2/date_time3_test.dart ('k') | tests/corelib_2/date_time5_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 // Test fromString with 6 digits after the decimal point. 7 // Test fromString with 6 digits after the decimal point.
8 8
9 bool get supportsMicroseconds => 9 bool get supportsMicroseconds =>
10 new DateTime.fromMicrosecondsSinceEpoch(1).microsecondsSinceEpoch == 1; 10 new DateTime.fromMicrosecondsSinceEpoch(1).microsecondsSinceEpoch == 1;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Expect.equals(2012, dt1.year); 95 Expect.equals(2012, dt1.year);
96 Expect.equals(3, dt1.month); 96 Expect.equals(3, dt1.month);
97 Expect.equals(30, dt1.day); 97 Expect.equals(30, dt1.day);
98 Expect.equals(4, dt1.hour); 98 Expect.equals(4, dt1.hour);
99 Expect.equals(28, dt1.minute); 99 Expect.equals(28, dt1.minute);
100 Expect.equals(13, dt1.second); 100 Expect.equals(13, dt1.second);
101 Expect.equals(752, dt1.millisecond); 101 Expect.equals(752, dt1.millisecond);
102 Expect.equals(341, dt1.microsecond); 102 Expect.equals(341, dt1.microsecond);
103 Expect.equals(true, dt1.isUtc); 103 Expect.equals(true, dt1.isUtc);
104 } 104 }
OLDNEW
« no previous file with comments | « tests/corelib_2/date_time3_test.dart ('k') | tests/corelib_2/date_time5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698