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

Unified Diff: tests/corelib/date_time7_test.dart

Issue 12047046: Change new DateTime.fromString to DateTime.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 11 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/date_time4_test.dart ('k') | tests/corelib/date_time_parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/date_time7_test.dart
diff --git a/tests/corelib/date_time7_test.dart b/tests/corelib/date_time7_test.dart
index f9b8e943616c5db37f1fb998ce6cea84cf11e053..1be867d87bc8733551acfa4391507e0cfdf00f2c 100644
--- a/tests/corelib/date_time7_test.dart
+++ b/tests/corelib/date_time7_test.dart
@@ -5,7 +5,7 @@
// Test DateTime timeZoneName and timeZoneOffset getters.
testUtc() {
- var d = new DateTime.fromString("2012-03-04T03:25:38.123Z");
+ var d = DateTime.parse("2012-03-04T03:25:38.123Z");
Expect.equals("UTC", d.timeZoneName);
Expect.equals(0, d.timeZoneOffset.inSeconds);
}
@@ -33,11 +33,11 @@ testLocal() {
}
}
- var d = new DateTime.fromString("2012-01-02T13:45:23");
+ var d = DateTime.parse("2012-01-02T13:45:23");
String name = d.timeZoneName;
checkOffset(name, d.timeZoneOffset);
- d = new DateTime.fromString("2012-07-02T13:45:23");
+ d = DateTime.parse("2012-07-02T13:45:23");
name = d.timeZoneName;
checkOffset(name, d.timeZoneOffset);
}
« no previous file with comments | « tests/corelib/date_time4_test.dart ('k') | tests/corelib/date_time_parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698