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

Side by Side Diff: LayoutTests/fast/filesystem/resources/op-get-metadata.js

Issue 22831019: Deprecate FileError in FileAPI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win test expectation fix (temporary) Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 var testCases = [ 1 var testCases = [
2 { 2 {
3 name: 'GetMetadata', 3 name: 'GetMetadata',
4 precondition: [ 4 precondition: [
5 {fullPath:'/tmp'}, 5 {fullPath:'/tmp'},
6 {fullPath:'/file1', size:0}, 6 {fullPath:'/file1', size:0},
7 {fullPath:'/file2', size:10}, 7 {fullPath:'/file2', size:10},
8 {fullPath:'/file3', size:90}, 8 {fullPath:'/file3', size:90},
9 ], 9 ],
10 tests: [ 10 tests: [
11 function(helper) { helper.getMetadata('/'); }, 11 function(helper) { helper.getMetadata('/'); },
12 function(helper) { helper.getDirectory('/', '/a', {create:true}); }, 12 function(helper) { helper.getDirectory('/', '/a', {create:true}); },
13 function(helper) { helper.getMetadata('/a'); }, 13 function(helper) { helper.getMetadata('/a'); },
14 function(helper) { helper.getMetadata('/file1'); }, 14 function(helper) { helper.getMetadata('/file1'); },
15 function(helper) { helper.getMetadata('/file2'); }, 15 function(helper) { helper.getMetadata('/file2'); },
16 function(helper) { helper.getMetadata('/file3'); }, 16 function(helper) { helper.getMetadata('/file3'); },
17 function(helper) { helper.getFile('/', '/b', {create:true}); }, 17 function(helper) { helper.getFile('/', '/b', {create:true}); },
18 function(helper) { helper.getMetadata('/b'); }, 18 function(helper) { helper.getMetadata('/b'); },
19 function(helper) { helper.remove('/tmp'); }, 19 function(helper) { helper.remove('/tmp'); },
20 function(helper) { helper.getMetadata('/tmp', FileError.NOT_FOUND_ER R); }, 20 function(helper) { helper.getMetadata('/tmp', 'NotFoundError'); },
21 function(helper) { helper.shouldBeGreaterThanOrEqual('/a.returned.mo dificationTime', '/.returned.modificationTime'); }, 21 function(helper) { helper.shouldBeGreaterThanOrEqual('/a.returned.mo dificationTime', '/.returned.modificationTime'); },
22 function(helper) { helper.shouldBeGreaterThanOrEqual('/b.returned.mo dificationTime', '/.returned.modificationTime'); }, 22 function(helper) { helper.shouldBeGreaterThanOrEqual('/b.returned.mo dificationTime', '/.returned.modificationTime'); },
23 function(helper) { helper.shouldBeGreaterThanOrEqual('/b.returned.mo dificationTime', '/a.returned.modificationTime'); } 23 function(helper) { helper.shouldBeGreaterThanOrEqual('/b.returned.mo dificationTime', '/a.returned.modificationTime'); }
24 ], 24 ],
25 postcondition: [ ], 25 postcondition: [ ],
26 }, 26 },
27 ]; 27 ];
OLDNEW
« no previous file with comments | « LayoutTests/fast/filesystem/resources/op-get-entry.js ('k') | LayoutTests/fast/filesystem/resources/op-move.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698