Index: tests/corelib/date_time7_test.dart |
diff --git a/tests/corelib/date_time7_test.dart b/tests/corelib/date_time7_test.dart |
index da6005e5be41a7b48f91c332e3e631e42ba17490..f9b8e943616c5db37f1fb998ce6cea84cf11e053 100644 |
--- a/tests/corelib/date_time7_test.dart |
+++ b/tests/corelib/date_time7_test.dart |
@@ -2,10 +2,10 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// Test Date timeZoneName and timeZoneOffset getters. |
+// Test DateTime timeZoneName and timeZoneOffset getters. |
testUtc() { |
- var d = new Date.fromString("2012-03-04T03:25:38.123Z"); |
+ var d = new DateTime.fromString("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 Date.fromString("2012-01-02T13:45:23"); |
+ var d = new DateTime.fromString("2012-01-02T13:45:23"); |
String name = d.timeZoneName; |
checkOffset(name, d.timeZoneOffset); |
- d = new Date.fromString("2012-07-02T13:45:23"); |
+ d = new DateTime.fromString("2012-07-02T13:45:23"); |
name = d.timeZoneName; |
checkOffset(name, d.timeZoneOffset); |
} |