Log Message
[FileSystem API] restricted Unicode characters in names https://bugs.webkit.org/show_bug.cgi?id=69657
Patch by Mark Pilgrim <[email protected]> on 2011-10-14 Reviewed by Adam Barth. * fast/filesystem/op-restricted-unicode-expected.txt: Added. * fast/filesystem/op-restricted-unicode.html: Added. * fast/filesystem/resources/op-restricted-unicode.js: Added. (testCases.name.precondition.tests): (testCases):
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (97540 => 97541)
--- trunk/LayoutTests/ChangeLog 2011-10-15 06:26:31 UTC (rev 97540)
+++ trunk/LayoutTests/ChangeLog 2011-10-15 06:51:25 UTC (rev 97541)
@@ -1,3 +1,16 @@
+2011-10-14 Mark Pilgrim <[email protected]>
+
+ [FileSystem API] restricted Unicode characters in names
+ https://bugs.webkit.org/show_bug.cgi?id=69657
+
+ Reviewed by Adam Barth.
+
+ * fast/filesystem/op-restricted-unicode-expected.txt: Added.
+ * fast/filesystem/op-restricted-unicode.html: Added.
+ * fast/filesystem/resources/op-restricted-unicode.js: Added.
+ (testCases.name.precondition.tests):
+ (testCases):
+
2011-10-14 Gavin Barraclough <[email protected]>
Most built-in properties are not deletable
Added: trunk/LayoutTests/fast/filesystem/op-restricted-unicode-expected.txt (0 => 97541)
--- trunk/LayoutTests/fast/filesystem/op-restricted-unicode-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/filesystem/op-restricted-unicode-expected.txt 2011-10-15 06:51:25 UTC (rev 97541)
@@ -0,0 +1,39 @@
+* Running: RestrictedUnicodeChars
+PASS Succeeded: "/".getFile("ab")
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS this.expectedErrorCode + "" is "9"
+PASS Verified entry: ENTRY {path:/ab name:ab type:FILE}
+Finished running tests.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/filesystem/op-restricted-unicode.html (0 => 97541)
--- trunk/LayoutTests/fast/filesystem/op-restricted-unicode.html (rev 0)
+++ trunk/LayoutTests/fast/filesystem/op-restricted-unicode.html 2011-10-15 06:51:25 UTC (rev 97541)
@@ -0,0 +1,13 @@
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script src=""
+<script src=""
+</head>
+<body>
+<div id="console"></div>
+<script src=""
+<script src=""
+<script src=""
+</body>
+</html>
Added: trunk/LayoutTests/fast/filesystem/resources/op-restricted-unicode.js (0 => 97541)
--- trunk/LayoutTests/fast/filesystem/resources/op-restricted-unicode.js (rev 0)
+++ trunk/LayoutTests/fast/filesystem/resources/op-restricted-unicode.js 2011-10-15 06:51:25 UTC (rev 97541)
@@ -0,0 +1,45 @@
+var testCases = [
+ {
+ name: 'RestrictedUnicodeChars',
+ precondition: [ ],
+ tests: [
+ function(helper) { helper.getFile('/', 'ab', {create:true}); },
+
+ // Restricted character in 'path' parameter.
+ function(helper) { helper.getFile('/', 'a\u0000b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0001b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0002b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0003b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0004b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0005b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0006b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0007b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0008b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0009b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u000ab', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u000bb', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u000cb', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u000db', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u000eb', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u000fb', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0010b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0011b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0012b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0013b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0014b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0015b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0016b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0017b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0018b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u0019b', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u001ab', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u001bb', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u001cb', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u001db', {create:true}, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.getFile('/', 'a\u001eb', {create:true}, FileError.INVALID_MODIFICATION_ERR); }
+ ],
+ postcondition: [
+ {fullPath:'/ab'},
+ ],
+ },
+];
_______________________________________________ webkit-changes mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes
