Index: tests/corelib/core_runtime_types_test.dart |
diff --git a/tests/corelib/core_runtime_types_test.dart b/tests/corelib/core_runtime_types_test.dart |
index b68a1ff00e5bdb11cc48c36c940bd1718701f1f5..728adb449ee47b02d5c0f6b62d9fe31b17e7254f 100644 |
--- a/tests/corelib/core_runtime_types_test.dart |
+++ b/tests/corelib/core_runtime_types_test.dart |
@@ -253,11 +253,11 @@ class CoreRuntimeTypesTest { |
static testDateMethods() { |
var msec = 115201000; |
- var d = new Date.fromMillisecondsSinceEpoch(msec, isUtc: true); |
+ var d = new DateTime.fromMillisecondsSinceEpoch(msec, isUtc: true); |
assertEquals(d.second, 1); |
assertEquals(d.year, 1970); |
- d = new Date.now(); |
+ d = new DateTime.now(); |
assertEquals(d.year >= 2011, true); |
} |