OLD | NEW |
1 library fileapi; | 1 library fileapi; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_individual_config.dart'; | 3 import 'package:unittest/html_individual_config.dart'; |
4 import 'dart:html'; | 4 import 'dart:html'; |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 class FileAndDir { | 7 class FileAndDir { |
8 FileEntry file; | 8 FileEntry file; |
9 DirectoryEntry dir; | 9 DirectoryEntry dir; |
10 FileAndDir(this.file, this.dir); | 10 FileAndDir(this.file, this.dir); |
11 } | 11 } |
12 | 12 |
13 FileSystem fs; | 13 FileSystem fs; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 expect(fileObj.name, fileAndDir.file.name); | 189 expect(fileObj.name, fileAndDir.file.name); |
190 expect(fileObj.relativePath, ''); | 190 expect(fileObj.relativePath, ''); |
191 expect(new DateTime.now().difference( | 191 expect(new DateTime.now().difference( |
192 fileObj.lastModifiedDate).inSeconds, lessThan(60)); | 192 fileObj.lastModifiedDate).inSeconds, lessThan(60)); |
193 }); | 193 }); |
194 }); | 194 }); |
195 }); | 195 }); |
196 } | 196 } |
197 }); | 197 }); |
198 } | 198 } |
OLD | NEW |