From bac22f1b57131a5337c9d735ad5397548ab26ec0 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 16 Jun 2016 20:13:35 +0100 Subject: [PATCH] Annotate some test failures in FileAPI tests. --- .../FileAPI/blob/Blob-XHR-revoke.html.ini | 1 + .../FileAPI/blob/Blob-constructor.html.ini | 11 ++- .../metadata/FileAPI/blob/Blob-slice.html.ini | 69 ++++--------------- .../FileAPI/file/File-constructor.html.ini | 4 ++ .../common-HTMLOptionsCollection.html.ini | 4 ++ .../FileAPI/blob/Blob-constructor.html | 22 +++--- 6 files changed, 45 insertions(+), 66 deletions(-) diff --git a/tests/wpt/metadata/FileAPI/blob/Blob-XHR-revoke.html.ini b/tests/wpt/metadata/FileAPI/blob/Blob-XHR-revoke.html.ini index 7f8f06ca7c2..db06f9d1781 100644 --- a/tests/wpt/metadata/FileAPI/blob/Blob-XHR-revoke.html.ini +++ b/tests/wpt/metadata/FileAPI/blob/Blob-XHR-revoke.html.ini @@ -2,4 +2,5 @@ type: testharness [Revoking blob URL used with XMLHttpRequest] expected: FAIL + bug: https://github.com/servo/servo/issues/10539 diff --git a/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini b/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini index 8376e85656c..9f6700111c5 100644 --- a/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini +++ b/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini @@ -2,28 +2,37 @@ type: testharness [Passing non-objects, Dates and RegExps for blobParts should throw a TypeError.] expected: FAIL + bug: https://github.com/servo/rust-mozjs/issues/269 [ArrayBuffer elements of the blobParts array should be supported.] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Passing typed arrays as elements of the blobParts array should work.] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Passing a Float64Array as element of the blobParts array should work.] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Passing an platform object that supports indexed properties as the blobParts array should work (select).] expected: FAIL + bug: https://github.com/servo/servo/issues/11763 - [Passing a platform array object as the blobParts array should work (MessagePort[\]).] + [Passing a FrozenArray as the blobParts array should work (FrozenArray).] expected: FAIL + bug: https://github.com/servo/servo/issues/7457 [Array with two buffers] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Array with two bufferviews] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Array with mixed types] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 diff --git a/tests/wpt/metadata/FileAPI/blob/Blob-slice.html.ini b/tests/wpt/metadata/FileAPI/blob/Blob-slice.html.ini index 171f532e60d..25aa6248cf4 100644 --- a/tests/wpt/metadata/FileAPI/blob/Blob-slice.html.ini +++ b/tests/wpt/metadata/FileAPI/blob/Blob-slice.html.ini @@ -2,100 +2,61 @@ type: testharness [Slicing test: slice (5,0).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (5,1).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (5,2).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (5,3).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (6,0).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (6,1).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (6,2).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (7,0).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (7,1).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (7,2).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (7,3).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (8,0).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (8,1).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (8,2).] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Slicing test: slice (8,3).] expected: FAIL - - [Invalid contentType ("te(xt/plain")] - expected: FAIL - - [Invalid contentType ("te)xt/plain")] - expected: FAIL - - [Invalid contentType ("text/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 + bug: https://github.com/servo/servo/issues/10911 diff --git a/tests/wpt/metadata/FileAPI/file/File-constructor.html.ini b/tests/wpt/metadata/FileAPI/file/File-constructor.html.ini index 7087a621261..d9c18b41655 100644 --- a/tests/wpt/metadata/FileAPI/file/File-constructor.html.ini +++ b/tests/wpt/metadata/FileAPI/file/File-constructor.html.ini @@ -2,13 +2,17 @@ type: testharness [ArrayBuffer fileBits] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Typed array fileBits] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Various fileBits] expected: FAIL + bug: https://github.com/servo/servo/issues/10911 [Using special character in fileName] expected: FAIL + bug: https://github.com/w3c/FileAPI/issues/41 diff --git a/tests/wpt/metadata/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html.ini b/tests/wpt/metadata/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html.ini index 7b7d271bb4a..68013761645 100644 --- a/tests/wpt/metadata/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html.ini +++ b/tests/wpt/metadata/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html.ini @@ -2,13 +2,17 @@ type: testharness [On getting, the length attribute must return the number of nodes represented by the collection.] expected: FAIL + bug: https://github.com/servo/servo/issues/11763 [Changing the length adds new nodes; The number of new nodes = new length minus old length] expected: FAIL + bug: https://github.com/servo/servo/issues/11763 [New nodes have no value] expected: FAIL + bug: https://github.com/servo/servo/issues/11763 [Setting a length equal to existing length changes nothing] expected: FAIL + bug: https://github.com/servo/servo/issues/11763 diff --git a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html index 9c2b0a138c9..d8375c2a6e8 100644 --- a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html +++ b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html @@ -330,7 +330,17 @@ test_blob(function() { desc: "Passing an platform object that supports indexed properties as the blobParts array should work (select)." }); -var t_ports = async_test("Passing a platform array object as the blobParts array should work (MessagePort[])."); +test_blob(function() { + var elm = document.createElement("div"); + elm.setAttribute("foo", "bar"); + return new Blob(elm.attributes); +}, { + expected: "[object Attr]", + type: "", + desc: "Passing an platform object that supports indexed properties as the blobParts array should work (attributes)." +}); + +var t_ports = async_test("Passing a FrozenArray as the blobParts array should work (FrozenArray)."); t_ports.step(function() { var channel = new MessageChannel(); channel.port2.onmessage = this.step_func(function(e) { @@ -342,16 +352,6 @@ t_ports.step(function() { channel.port1.postMessage('', [channel2.port1]); }); -test_blob(function() { - var elm = document.createElement("div"); - elm.setAttribute("foo", "bar"); - return new Blob(elm.attributes); -}, { - expected: "[object Attr]", - type: "", - desc: "Passing a platform array object as the blobParts array should work (Attr[])." -}); - test_blob(function() { var blob = new Blob(['foo']); return new Blob([blob, blob]);