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

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

Issue 14153003: Remove deprecated <, <=, >, and >= of DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/corelib/date_time6_test.dart ('k') | tests/standalone/io/secure_socket_bad_certificate_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 ad829d5a4c8387e0a7390705b14aa7ceb867366d..ce493f8964a328465e15b0df092b35cfeb8a2ea9 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -1070,7 +1070,7 @@ class FileTest {
var port = new ReceivePort();
new File(new Options().executable).lastModified().then((modified) {
Expect.isTrue(modified is DateTime);
- Expect.isTrue(modified < new DateTime.now());
+ Expect.isTrue(modified.isBefore(new DateTime.now()));
port.close();
});
}
@@ -1078,7 +1078,7 @@ class FileTest {
static void testLastModifiedSync() {
var modified = new File(new Options().executable).lastModifiedSync();
Expect.isTrue(modified is DateTime);
- Expect.isTrue(modified < new DateTime.now());
+ Expect.isTrue(modified.isBefore(new DateTime.now()));
}
// Test that opens the same file for writing then for appending to test
« no previous file with comments | « tests/corelib/date_time6_test.dart ('k') | tests/standalone/io/secure_socket_bad_certificate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698