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

Unified Diff: tests/standalone/io/file_test.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 93dccf48c5722772c2d9d6fa9ebf6327f217ad11..b3396ed5ce80c2ef1c826ee14bb0309d70afcf35 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -1153,16 +1153,16 @@ class FileTest {
static void testLastModified() {
var port = new ReceivePort();
new File(new Options().executable).lastModified().then((modified) {
- Expect.isTrue(modified is Date);
- Expect.isTrue(modified < new Date.now());
+ Expect.isTrue(modified is DateTime);
+ Expect.isTrue(modified < new DateTime.now());
port.close();
});
}
static void testLastModifiedSync() {
var modified = new File(new Options().executable).lastModifiedSync();
- Expect.isTrue(modified is Date);
- Expect.isTrue(modified < new Date.now());
+ Expect.isTrue(modified is DateTime);
+ Expect.isTrue(modified < new DateTime.now());
}
// Test that opens the same file for writing then for appending to test

Powered by Google App Engine
This is Rietveld 408576698