OLD | NEW |
1 var testCases = [ | 1 var testCases = [ |
2 { | 2 { |
3 name: 'RestrictedNames', | 3 name: 'RestrictedNames', |
4 precondition: [ | 4 precondition: [ |
5 {fullPath:'/a', isDirectory:true}, | 5 {fullPath:'/a', isDirectory:true}, |
6 {fullPath:'/b', isDirectory:true}, | 6 {fullPath:'/b', isDirectory:true}, |
7 {fullPath:'/c', isDirectory:true} | 7 {fullPath:'/c', isDirectory:true} |
8 ], | 8 ], |
9 tests: [ | 9 tests: [ |
10 function(helper) { helper.getFile('/', '.', {create:true}, FileError
.SECURITY_ERR); }, | 10 function(helper) { helper.getFile('/', '.', {create:true}, 'Security
Error'); }, |
11 function(helper) { helper.getFile('/', '..', {create:true}, FileErro
r.SECURITY_ERR); }, | 11 function(helper) { helper.getFile('/', '..', {create:true}, 'Securit
yError'); }, |
12 function(helper) { helper.getFile('/', 'con', {create:true}, 0); }, | 12 function(helper) { helper.getFile('/', 'con', {create:true}, 0); }, |
13 function(helper) { helper.getFile('/', 'CON', {create:true}, 0); }, | 13 function(helper) { helper.getFile('/', 'CON', {create:true}, 0); }, |
14 function(helper) { helper.getFile('/', 'Con', {create:true}, 0); }, | 14 function(helper) { helper.getFile('/', 'Con', {create:true}, 0); }, |
15 function(helper) { helper.getFile('/', 'cOn.txt', {create:true}, 0);
}, | 15 function(helper) { helper.getFile('/', 'cOn.txt', {create:true}, 0);
}, |
16 function(helper) { helper.getFile('/', 'a/coN', {create:true}, 0); }
, | 16 function(helper) { helper.getFile('/', 'a/coN', {create:true}, 0); }
, |
17 | 17 |
18 function(helper) { helper.getFile('/', 'prn', {create:true}, 0); }, | 18 function(helper) { helper.getFile('/', 'prn', {create:true}, 0); }, |
19 function(helper) { helper.getFile('/', 'PRN', {create:true}, 0); }, | 19 function(helper) { helper.getFile('/', 'PRN', {create:true}, 0); }, |
20 function(helper) { helper.getFile('/', 'Prn', {create:true}, 0); }, | 20 function(helper) { helper.getFile('/', 'Prn', {create:true}, 0); }, |
21 function(helper) { helper.getFile('/', 'pRn.txt', {create:true}, 0);
}, | 21 function(helper) { helper.getFile('/', 'pRn.txt', {create:true}, 0);
}, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 function(helper) { helper.move('/b', '/', 'foo\t\t', 0); }, | 55 function(helper) { helper.move('/b', '/', 'foo\t\t', 0); }, |
56 function(helper) { helper.move('/c', '/', 'foo.....', 0); }, | 56 function(helper) { helper.move('/c', '/', 'foo.....', 0); }, |
57 ], | 57 ], |
58 postcondition: [ | 58 postcondition: [ |
59 {fullPath:'/foo ', isDirectory:true}, | 59 {fullPath:'/foo ', isDirectory:true}, |
60 {fullPath:'/foo\t\t', isDirectory:true}, | 60 {fullPath:'/foo\t\t', isDirectory:true}, |
61 {fullPath:'/foo.....', isDirectory:true} | 61 {fullPath:'/foo.....', isDirectory:true} |
62 ], | 62 ], |
63 }, | 63 }, |
64 ]; | 64 ]; |
OLD | NEW |