OLD | NEW |
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 ]; |
OLD | NEW |