diff options
16 files changed, 761 insertions, 0 deletions
diff --git a/tests/wpt/include.ini b/tests/wpt/include.ini index a8a24691b1f..a95e3c016f9 100644 --- a/tests/wpt/include.ini +++ b/tests/wpt/include.ini @@ -3,6 +3,8 @@ skip: true skip: false [domparsing] skip: false +[FileAPI] + skip: false [html] skip: false [browsers] diff --git a/tests/wpt/metadata/FileAPI/Blob-XHR-revoke.html.ini b/tests/wpt/metadata/FileAPI/Blob-XHR-revoke.html.ini new file mode 100644 index 00000000000..7f8f06ca7c2 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/Blob-XHR-revoke.html.ini @@ -0,0 +1,5 @@ +[Blob-XHR-revoke.html] + type: testharness + [Revoking blob URL used with XMLHttpRequest] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/Blob-close.html.ini b/tests/wpt/metadata/FileAPI/Blob-close.html.ini new file mode 100644 index 00000000000..644f864f518 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/Blob-close.html.ini @@ -0,0 +1,5 @@ +[Blob-close.html] + type: testharness + [Blob.close] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/Blob-constructor.html.ini b/tests/wpt/metadata/FileAPI/Blob-constructor.html.ini new file mode 100644 index 00000000000..ad07b556982 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/Blob-constructor.html.ini @@ -0,0 +1,149 @@ +[Blob-constructor.html] + type: testharness + [Blob interface object] + expected: FAIL + + [Passing non-objects, Dates and RegExps for blobParts should throw a TypeError.] + expected: FAIL + + [A plain object should be treated as a sequence for the blobParts argument.] + expected: FAIL + + [A plain object with a length property should be treated as a sequence for the blobParts argument.] + expected: FAIL + + [A String object should be treated as a sequence for the blobParts argument.] + expected: FAIL + + [A Uint8Array object should be treated as a sequence for the blobParts argument.] + expected: FAIL + + [The length getter should be invoked and any exceptions should be propagated.] + expected: FAIL + + [A platform object that supports indexed properties should be treated as a sequence for the blobParts argument (overwritten \'length\'.)] + expected: FAIL + + [ToUint32 should be applied to the length and any exceptions should be propagated.] + expected: FAIL + + [Getters and value conversions should happen in order until an exception is thrown.] + expected: FAIL + + [Changes to the blobParts array should be reflected in the returned Blob (pop).] + expected: FAIL + + [Changes to the blobParts array should be reflected in the returned Blob (unshift).] + expected: FAIL + + [ToString should be called on elements of the blobParts array.] + expected: FAIL + + [ArrayBuffer elements of the blobParts array should be supported.] + expected: FAIL + + [Passing typed arrays as elements of the blobParts array should work.] + expected: FAIL + + [Passing a Float64Array as element of the blobParts array should work.] + expected: FAIL + + [Passing an element as the blobParts array should work.] + expected: FAIL + + [Passing an platform object that supports indexed properties as the blobParts array should work (window).] + expected: FAIL + + [Passing an platform object that supports indexed properties as the blobParts array should work (window with custom toString).] + expected: FAIL + + [Passing an platform object that supports indexed properties as the blobParts array should work (select).] + expected: FAIL + + [Passing a platform array object as the blobParts array should work (MessagePort[\]).] + expected: FAIL + + [Passing a platform array object as the blobParts array should work (Attr[\]).] + expected: FAIL + + [Array with two blobs] + expected: FAIL + + [Array with two buffers] + expected: FAIL + + [Array with two bufferviews] + expected: FAIL + + [Array with mixed types] + expected: FAIL + + [options properties should be accessed in lexicographic order.] + expected: FAIL + + [Passing null (index 0) for options should use the defaults.] + expected: FAIL + + [Passing null (index 0) for options should use the defaults (with newlines).] + expected: FAIL + + [Passing undefined (index 1) for options should use the defaults.] + expected: FAIL + + [Passing undefined (index 1) for options should use the defaults (with newlines).] + expected: FAIL + + [Passing object "[object Object\]" (index 2) for options should use the defaults.] + expected: FAIL + + [Passing object "[object Object\]" (index 2) for options should use the defaults (with newlines).] + expected: FAIL + + [Passing object "[object Object\]" (index 3) for options should use the defaults.] + expected: FAIL + + [Passing object "[object Object\]" (index 3) for options should use the defaults (with newlines).] + expected: FAIL + + [Passing object "/regex/" (index 4) for options should use the defaults.] + expected: FAIL + + [Passing object "/regex/" (index 4) for options should use the defaults (with newlines).] + expected: FAIL + + [Passing function "function () {}" (index 5) for options should use the defaults.] + expected: FAIL + + [Passing function "function () {}" (index 5) for options should use the defaults (with newlines).] + expected: FAIL + + [Newlines should not change when endings is \'transparent\'.] + expected: FAIL + + [Newlines should not change when endings is \'native\'.] + expected: FAIL + + [Blob with type "a"] + expected: FAIL + + [Blob with type "A"] + expected: FAIL + + [Blob with type "text/html"] + expected: FAIL + + [Blob with type "TEXT/HTML"] + expected: FAIL + + [Blob with type " image/gif "] + expected: FAIL + + [Blob with type "unknown/unknown"] + expected: FAIL + + [Blob with type "text/plain"] + expected: FAIL + + [Blob with type "image/png"] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/Blob-slice.html.ini b/tests/wpt/metadata/FileAPI/Blob-slice.html.ini new file mode 100644 index 00000000000..be561b7f1c8 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/Blob-slice.html.ini @@ -0,0 +1,230 @@ +[Blob-slice.html] + type: testharness + [no-argument Blob slice] + expected: FAIL + + [blob1.] + expected: FAIL + + [blob2.] + expected: FAIL + + [Slicing test: slice (0,0).] + expected: FAIL + + [Slicing test: slice (0,1).] + expected: FAIL + + [Slicing test: slice (0,2).] + expected: FAIL + + [Slicing test: slice (0,3).] + expected: FAIL + + [Slicing test: slice (0,4).] + expected: FAIL + + [Slicing test: slice (0,5).] + expected: FAIL + + [Slicing test: slice (0,6).] + expected: FAIL + + [Slicing test: slice (0,7).] + expected: FAIL + + [Slicing test: slice (0,8).] + expected: FAIL + + [Slicing test: slice (1,0).] + expected: FAIL + + [Slicing test: slice (1,1).] + expected: FAIL + + [Slicing test: slice (1,2).] + expected: FAIL + + [Slicing test: slice (1,3).] + expected: FAIL + + [Slicing test: slice (1,4).] + expected: FAIL + + [Slicing test: slice (1,5).] + expected: FAIL + + [Slicing test: slice (1,6).] + expected: FAIL + + [Slicing test: slice (1,7).] + expected: FAIL + + [Slicing test: slice (2,0).] + expected: FAIL + + [Slicing test: slice (2,1).] + expected: FAIL + + [Slicing test: slice (2,2).] + expected: FAIL + + [Slicing test: slice (2,3).] + expected: FAIL + + [Slicing test: slice (3,0).] + expected: FAIL + + [Slicing test: slice (3,1).] + expected: FAIL + + [Slicing test: slice (3,2).] + expected: FAIL + + [Slicing test: slice (3,3).] + expected: FAIL + + [Slicing test: slice (3,4).] + expected: FAIL + + [Slicing test: slice (3,5).] + expected: FAIL + + [Slicing test: slice (4,0).] + expected: FAIL + + [Slicing test: slice (4,1).] + expected: FAIL + + [Slicing test: slice (4,2).] + expected: FAIL + + [Slicing test: slice (4,3).] + expected: FAIL + + [Slicing test: slice (4,4).] + expected: FAIL + + [Slicing test: slice (5,0).] + expected: FAIL + + [Slicing test: slice (5,1).] + expected: FAIL + + [Slicing test: slice (5,2).] + expected: FAIL + + [Slicing test: slice (5,3).] + expected: FAIL + + [Slicing test: slice (6,0).] + expected: FAIL + + [Slicing test: slice (6,1).] + expected: FAIL + + [Slicing test: slice (6,2).] + expected: FAIL + + [Slicing test: slice (7,0).] + expected: FAIL + + [Slicing test: slice (7,1).] + expected: FAIL + + [Slicing test: slice (7,2).] + expected: FAIL + + [Slicing test: slice (7,3).] + expected: FAIL + + [Slicing test: slice (8,0).] + expected: FAIL + + [Slicing test: slice (8,1).] + expected: FAIL + + [Slicing test: slice (8,2).] + expected: FAIL + + [Slicing test: slice (8,3).] + expected: FAIL + + [Invalid contentType ("\xc3\xbf")] + expected: FAIL + + [Invalid contentType ("te(xt/plain")] + expected: FAIL + + [Invalid contentType ("te)xt/plain")] + expected: FAIL + + [Invalid contentType ("te<xt/plain")] + expected: FAIL + + [Invalid contentType ("te>xt/plain")] + expected: FAIL + + [Invalid contentType ("te@xt/plain")] + expected: FAIL + + [Invalid contentType ("te,xt/plain")] + expected: FAIL + + [Invalid contentType ("te;xt/plain")] + expected: FAIL + + [Invalid contentType ("te:xt/plain")] + expected: FAIL + + [Invalid contentType ("te\\\\xt/plain")] + expected: FAIL + + [Invalid contentType ("te\\"xt/plain")] + expected: FAIL + + [Invalid contentType ("te/xt/plain")] + expected: FAIL + + [Invalid contentType ("te[xt/plain")] + expected: FAIL + + [Invalid contentType ("te\]xt/plain")] + expected: FAIL + + [Invalid contentType ("te?xt/plain")] + expected: FAIL + + [Invalid contentType ("te=xt/plain")] + expected: FAIL + + [Invalid contentType ("te{xt/plain")] + expected: FAIL + + [Invalid contentType ("te}xt/plain")] + expected: FAIL + + [Invalid contentType ("te xt/plain")] + expected: FAIL + + [Invalid contentType ("te\\txt/plain")] + expected: FAIL + + [Invalid contentType ("te\\0xt/plain")] + expected: FAIL + + [Invalid contentType ("te\\x1fxt/plain")] + expected: FAIL + + [Invalid contentType ("te\x7fxt/plain")] + expected: FAIL + + [Valid contentType ("TEXT/PLAIN")] + expected: FAIL + + [Valid contentType ("text/plain;charset = UTF-8")] + expected: FAIL + + [Valid contentType ("text/plain;charset=UTF-8")] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/File-constructor.html.ini b/tests/wpt/metadata/FileAPI/File-constructor.html.ini new file mode 100644 index 00000000000..88e2fe94e2f --- /dev/null +++ b/tests/wpt/metadata/FileAPI/File-constructor.html.ini @@ -0,0 +1,44 @@ +[File-constructor.html] + type: testharness + [DOMString fileBits] + expected: FAIL + + [Unicode DOMString fileBits] + expected: FAIL + + [Empty Blob fileBits] + expected: FAIL + + [Blob fileBits] + expected: FAIL + + [ArrayBuffer fileBits] + expected: FAIL + + [Typed array fileBits] + expected: FAIL + + [Various fileBits] + expected: FAIL + + [Using fileName] + expected: FAIL + + [Using special character in fileName] + expected: FAIL + + [Using type on the File constructor] + expected: FAIL + + [Using uppercase characters in type] + expected: FAIL + + [Using illegal character for type] + expected: FAIL + + [Using lastModified] + expected: FAIL + + [Misusing name] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_abort.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_abort.html.ini new file mode 100644 index 00000000000..c990f495548 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_abort.html.ini @@ -0,0 +1,8 @@ +[filereader_abort.html] + type: testharness + [Aborting before read] + expected: FAIL + + [Aborting after read] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_error.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_error.html.ini new file mode 100644 index 00000000000..a843aa01083 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_error.html.ini @@ -0,0 +1,5 @@ +[filereader_error.html] + type: testharness + [FileAPI Test: filereader_error] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsArrayBuffer.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsArrayBuffer.html.ini new file mode 100644 index 00000000000..ee637898bde --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsArrayBuffer.html.ini @@ -0,0 +1,5 @@ +[filereader_readAsArrayBuffer.html] + type: testharness + [FileAPI Test: filereader_readAsArrayBuffer] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsDataURL.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsDataURL.html.ini new file mode 100644 index 00000000000..6be64beab23 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsDataURL.html.ini @@ -0,0 +1,5 @@ +[filereader_readAsDataURL.html] + type: testharness + [FileAPI Test: filereader_readAsDataURL] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsText.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsText.html.ini new file mode 100644 index 00000000000..6039faa8814 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readAsText.html.ini @@ -0,0 +1,8 @@ +[filereader_readAsText.html] + type: testharness + [readAsText should correctly read UTF-8.] + expected: FAIL + + [readAsText should correctly read UTF-16.] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readystate.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readystate.html.ini new file mode 100644 index 00000000000..00ba8d810dc --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_readystate.html.ini @@ -0,0 +1,5 @@ +[filereader_readystate.html] + type: testharness + [FileAPI Test: filereader_readystate] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_result.html.ini b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_result.html.ini new file mode 100644 index 00000000000..e24133d48d3 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader-interface/filereader_result.html.ini @@ -0,0 +1,11 @@ +[filereader_result.html] + type: testharness + [readAsText] + expected: FAIL + + [readAsDataURL] + expected: FAIL + + [readAsArrayBuffer] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/FileReader/Determining-Encoding.html.ini b/tests/wpt/metadata/FileAPI/FileReader/Determining-Encoding.html.ini new file mode 100644 index 00000000000..6ef475882e0 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/FileReader/Determining-Encoding.html.ini @@ -0,0 +1,20 @@ +[Determining-Encoding.html] + type: testharness + [Blob Determing Encoding with encoding argument] + expected: FAIL + + [Blob Determing Encoding with type attribute] + expected: FAIL + + [Blob Determing Encoding with UTF-8 BOM] + expected: FAIL + + [Blob Determing Encoding without anything implying charset.] + expected: FAIL + + [Blob Determing Encoding with UTF-16BE BOM] + expected: FAIL + + [Blob Determing Encoding with UTF-16LE BOM] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/filelist-section/filelist.html.ini b/tests/wpt/metadata/FileAPI/filelist-section/filelist.html.ini new file mode 100644 index 00000000000..0c88f1e11b9 --- /dev/null +++ b/tests/wpt/metadata/FileAPI/filelist-section/filelist.html.ini @@ -0,0 +1,23 @@ +[filelist.html] + type: testharness + [Check if window has a FileList property] + expected: FAIL + + [Check if FileList.length is 0] + expected: FAIL + + [Check if item is a instanceof Function] + expected: FAIL + + [Check if item is a method of fileList] + expected: FAIL + + [Check if the item method returns null when no file selected] + expected: FAIL + + [Check if length is fileList\'s attribute] + expected: FAIL + + [Check if the fileList length is 0 when no file selected] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/idlharness.html.ini b/tests/wpt/metadata/FileAPI/idlharness.html.ini new file mode 100644 index 00000000000..259dbca808c --- /dev/null +++ b/tests/wpt/metadata/FileAPI/idlharness.html.ini @@ -0,0 +1,236 @@ +[idlharness.html] + type: testharness + [URL interface: operation createObjectURL(Blob)] + expected: FAIL + + [URL interface: operation createFor(Blob)] + expected: FAIL + + [URL interface: operation revokeObjectURL(DOMString)] + expected: FAIL + + [Blob interface object length] + expected: FAIL + + [Blob interface: attribute isClosed] + expected: FAIL + + [Blob interface: operation slice(long long,long long,DOMString)] + expected: FAIL + + [Blob interface: operation close()] + expected: FAIL + + [Blob interface: new Blob(["TEST"\]) must inherit property "isClosed" with the proper type (2)] + expected: FAIL + + [Blob interface: new Blob(["TEST"\]) must inherit property "close" with the proper type (4)] + expected: FAIL + + [File interface object length] + expected: FAIL + + [File interface: attribute lastModified] + expected: FAIL + + [File must be primary interface of new File(["myFileBits"\], "myFileName")] + expected: FAIL + + [Stringification of new File(["myFileBits"\], "myFileName")] + expected: FAIL + + [File interface: new File(["myFileBits"\], "myFileName") must inherit property "name" with the proper type (0)] + expected: FAIL + + [File interface: new File(["myFileBits"\], "myFileName") must inherit property "lastModified" with the proper type (1)] + expected: FAIL + + [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "size" with the proper type (0)] + expected: FAIL + + [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "type" with the proper type (1)] + expected: FAIL + + [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "isClosed" with the proper type (2)] + expected: FAIL + + [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "slice" with the proper type (3)] + expected: FAIL + + [Blob interface: calling slice(long long,long long,DOMString) on new File(["myFileBits"\], "myFileName") with too few arguments must throw TypeError] + expected: FAIL + + [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "close" with the proper type (4)] + expected: FAIL + + [FileList interface: existence and properties of interface object] + expected: FAIL + + [FileList interface object length] + expected: FAIL + + [FileList interface: existence and properties of interface prototype object] + expected: FAIL + + [FileList interface: existence and properties of interface prototype object\'s "constructor" property] + expected: FAIL + + [FileList interface: operation item(unsigned long)] + expected: FAIL + + [FileList interface: attribute length] + expected: FAIL + + [FileReader interface: existence and properties of interface object] + expected: FAIL + + [FileReader interface object length] + expected: FAIL + + [FileReader interface: existence and properties of interface prototype object] + expected: FAIL + + [FileReader interface: existence and properties of interface prototype object\'s "constructor" property] + expected: FAIL + + [FileReader interface: operation readAsArrayBuffer(Blob)] + expected: FAIL + + [FileReader interface: operation readAsText(Blob,DOMString)] + expected: FAIL + + [FileReader interface: operation readAsDataURL(Blob)] + expected: FAIL + + [FileReader interface: operation abort()] + expected: FAIL + + [FileReader interface: constant EMPTY on interface object] + expected: FAIL + + [FileReader interface: constant EMPTY on interface prototype object] + expected: FAIL + + [FileReader interface: constant LOADING on interface object] + expected: FAIL + + [FileReader interface: constant LOADING on interface prototype object] + expected: FAIL + + [FileReader interface: constant DONE on interface object] + expected: FAIL + + [FileReader interface: constant DONE on interface prototype object] + expected: FAIL + + [FileReader interface: attribute readyState] + expected: FAIL + + [FileReader interface: attribute result] + expected: FAIL + + [FileReader interface: attribute error] + expected: FAIL + + [FileReader interface: attribute onloadstart] + expected: FAIL + + [FileReader interface: attribute onprogress] + expected: FAIL + + [FileReader interface: attribute onload] + expected: FAIL + + [FileReader interface: attribute onabort] + expected: FAIL + + [FileReader interface: attribute onerror] + expected: FAIL + + [FileReader interface: attribute onloadend] + expected: FAIL + + [FileReader must be primary interface of new FileReader()] + expected: FAIL + + [Stringification of new FileReader()] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "readAsArrayBuffer" with the proper type (0)] + expected: FAIL + + [FileReader interface: calling readAsArrayBuffer(Blob) on new FileReader() with too few arguments must throw TypeError] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "readAsText" with the proper type (1)] + expected: FAIL + + [FileReader interface: calling readAsText(Blob,DOMString) on new FileReader() with too few arguments must throw TypeError] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "readAsDataURL" with the proper type (2)] + expected: FAIL + + [FileReader interface: calling readAsDataURL(Blob) on new FileReader() with too few arguments must throw TypeError] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "abort" with the proper type (3)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "EMPTY" with the proper type (4)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "LOADING" with the proper type (5)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "DONE" with the proper type (6)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "readyState" with the proper type (7)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "result" with the proper type (8)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "error" with the proper type (9)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "onloadstart" with the proper type (10)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "onprogress" with the proper type (11)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "onload" with the proper type (12)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "onabort" with the proper type (13)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "onerror" with the proper type (14)] + expected: FAIL + + [FileReader interface: new FileReader() must inherit property "onloadend" with the proper type (15)] + expected: FAIL + + [FileReaderSync interface: existence and properties of interface object] + expected: FAIL + + [FileReaderSync interface object length] + expected: FAIL + + [FileReaderSync interface: existence and properties of interface prototype object] + expected: FAIL + + [FileReaderSync interface: existence and properties of interface prototype object\'s "constructor" property] + expected: FAIL + + [FileReaderSync interface: operation readAsArrayBuffer(Blob)] + expected: FAIL + + [FileReaderSync interface: operation readAsText(Blob,DOMString)] + expected: FAIL + + [FileReaderSync interface: operation readAsDataURL(Blob)] + expected: FAIL + |