Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart |
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart |
index e3a8b66efb3aad462323ccc21e60e9fd6044d21e..3dd00f33e9086641a3cd4f6828607beaacedfe4f 100644 |
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart |
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart |
@@ -252,11 +252,11 @@ class CoreRuntimeTypesTest { |
// Pushing this into Jan 2nd to make the year independent of timezone. |
// TODO(jimhug): Pursue a better solution to TZ issues. |
var msec = 115201000; |
- var d = new Date.fromMillisecondsSinceEpoch(msec, const TimeZone.utc()); |
+ var d = new DateTime.fromMillisecondsSinceEpoch(msec, const TimeZone.utc()); |
assertEquals(d.second, 1); |
assertEquals(d.year, 1970); |
- d = new Date.now(); |
+ d = new DateTime.now(); |
assertEquals(d.year >= 2011, true); |
} |