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

Side by Side Diff: LayoutTests/fast/filesystem/resources/op-restricted-names.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: '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
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 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698