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

Unified Diff: pkg/front_end/test/physical_file_system_test.dart

Issue 2988443002: Remove FileSystem.lastModified (Closed)
Patch Set: Created 3 years, 5 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 | « pkg/front_end/test/memory_file_system_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/physical_file_system_test.dart
diff --git a/pkg/front_end/test/physical_file_system_test.dart b/pkg/front_end/test/physical_file_system_test.dart
index 9c7efd0849c39d1f294eeb0f8e2cef47f77bb29d..f2ac0f76e3cfd3768215951c73462529f0c81db4 100644
--- a/pkg/front_end/test/physical_file_system_test.dart
+++ b/pkg/front_end/test/physical_file_system_test.dart
@@ -96,28 +96,6 @@ class FileTest extends _BaseTest {
expect(file.hashCode, entityForPath(p.join(tempPath, 'file.txt')).hashCode);
}
- test_lastModified_doesNotExist() {
- expect(file.lastModified(), _throwsFileSystemException);
- }
-
- test_lastModified_increasesOnEachChange() async {
- new io.File(path).writeAsStringSync('contents1');
- var mod1 = await file.lastModified();
-
- // Pause to ensure the file-system time-stamps are different.
- await new Future.delayed(new Duration(seconds: 1));
- new io.File(path).writeAsStringSync('contents2');
- var mod2 = await file.lastModified();
- expect(mod2.isAfter(mod1), isTrue);
-
- await new Future.delayed(new Duration(seconds: 1));
- var path2 = p.join(tempPath, 'file2.txt');
- new io.File(path2).writeAsStringSync('contents2');
- var file2 = entityForPath(path2);
- var mod3 = await file2.lastModified();
- expect(mod3.isAfter(mod2), isTrue);
- }
-
test_readAsBytes_badUtf8() async {
// A file containing invalid UTF-8 can still be read as raw bytes.
List<int> bytes = [0xc0, 0x40]; // Invalid UTF-8
« no previous file with comments | « pkg/front_end/test/memory_file_system_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698