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

Unified Diff: tests/corelib/date_time_test.dart

Issue 2069783002: Fix Windows time zone name extraction. Update API docs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Take daylight savings from call return. Restore previous failure return. Created 4 years, 6 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
« sdk/lib/core/date_time.dart ('K') | « sdk/lib/core/date_time.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/date_time_test.dart
diff --git a/tests/corelib/date_time_test.dart b/tests/corelib/date_time_test.dart
index efb22069682ed38bb71f9c4b9481409a2d8b3f8c..27758f82e9c4ec60beef3ff5a8e94ecea7adb736 100644
--- a/tests/corelib/date_time_test.dart
+++ b/tests/corelib/date_time_test.dart
@@ -1234,7 +1234,7 @@ void testToStrings() {
String source1 = "$date ${time}Z";
String source2 = "${date}T${time}Z";
var utcTime1 = DateTime.parse(source1);
- var utcTime2 = DateTime.parse(source1);
+ var utcTime2 = DateTime.parse(source2);
Expect.isTrue(utcTime1.isUtc);
Expect.equals(utcTime1, utcTime2);
Expect.equals(source1, utcTime1.toString());
@@ -1244,7 +1244,7 @@ void testToStrings() {
String source1 = "$date $time";
String source2 = "${date}T$time";
var utcTime1 = DateTime.parse(source1);
- var utcTime2 = DateTime.parse(source1);
+ var utcTime2 = DateTime.parse(source2);
Expect.isFalse(utcTime1.isUtc);
Expect.equals(utcTime1, utcTime2);
Expect.equals(source1, utcTime1.toString());
« sdk/lib/core/date_time.dart ('K') | « sdk/lib/core/date_time.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698