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

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: 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
« no previous file with comments | « tests/language/type_error_test.dart ('k') | tests/standalone/io/http_advanced_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 348791e7514fd44dc19c654e9c884c483dd1b2d4..4d7093d61b3eb5fd8d34574983846fdb1a55d7ad 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
« no previous file with comments | « tests/language/type_error_test.dart ('k') | tests/standalone/io/http_advanced_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698