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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698