WebKit Bugzilla
Attachment 349650 Details for
Bug 189581
: Remove some obsolete XHR tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-189581-20180913125152.patch (text/plain), 59.11 KB, created by
Ms2ger (he/him; ⌚ UTC+1/+2)
on 2018-09-13 03:51:54 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Ms2ger (he/him; ⌚ UTC+1/+2)
Created:
2018-09-13 03:51:54 PDT
Size:
59.11 KB
patch
obsolete
>Subversion Revision: 235970 >diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index 0f7913db91fba7da667f8c1b20d3cdf67c230867..c4a9a8cfbf7cec305a0075f47f8d5e1c8496cfef 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,12 @@ >+2018-09-13 Ms2ger <Ms2ger@igalia.com> >+ >+ Remove some obsolete XHR tests >+ https://bugs.webkit.org/show_bug.cgi?id=189581 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * TestExpectations: Drop reference to removed test. >+ > 2018-09-12 Dean Jackson <dino@grorg.org> > > Header parsing for experimental and internal debug features >diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog >index 630094d8f370a8b2d64faa015ec1040e0b07c00b..42aaf09f557a9b5c0505ec6f348b43371cf3550f 100644 >--- a/LayoutTests/imported/w3c/ChangeLog >+++ b/LayoutTests/imported/w3c/ChangeLog >@@ -1,3 +1,42 @@ >+2018-09-13 Ms2ger <Ms2ger@igalia.com> >+ >+ Remove some obsolete XHR tests >+ https://bugs.webkit.org/show_bug.cgi?id=189581 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ These tests were removed upstream, but stuck around in WebKit. >+ >+ * web-platform-tests/xhr/OWNERS: Removed. >+ * web-platform-tests/xhr/abort-during-open-expected.txt: Removed. >+ * web-platform-tests/xhr/abort-during-open.htm: Removed. >+ * web-platform-tests/xhr/abort-during-open.js: Removed. >+ * web-platform-tests/xhr/abort-during-open.worker-expected.txt: Removed. >+ * web-platform-tests/xhr/abort-during-open.worker.html: Removed. >+ * web-platform-tests/xhr/abort-during-open.worker.js: Removed. >+ * web-platform-tests/xhr/getallresponseheaders-cl-expected.txt: Removed. >+ * web-platform-tests/xhr/getallresponseheaders-cl.htm: Removed. >+ * web-platform-tests/xhr/interfaces-expected.txt: Removed. >+ * web-platform-tests/xhr/interfaces.html: Removed. >+ * web-platform-tests/xhr/open-url-bogus-expected.txt: Removed. >+ * web-platform-tests/xhr/open-url-bogus.htm: Removed. >+ * web-platform-tests/xhr/overridemimetype-done-state-expected.txt: Removed. >+ * web-platform-tests/xhr/overridemimetype-done-state.htm: Removed. >+ * web-platform-tests/xhr/readme.txt: Removed. >+ * web-platform-tests/xhr/responsetype-expected.txt: Removed. >+ * web-platform-tests/xhr/responsetype.html: Removed. >+ * web-platform-tests/xhr/send-non-same-origin.sub-expected.txt: Removed. >+ * web-platform-tests/xhr/send-non-same-origin.sub.htm: Removed. >+ * web-platform-tests/xhr/send-send-expected.txt: Removed. >+ * web-platform-tests/xhr/send-send.htm: Removed. >+ * web-platform-tests/xhr/send-send.js: Removed. >+ * web-platform-tests/xhr/send-send.worker-expected.txt: Removed. >+ * web-platform-tests/xhr/send-send.worker.html: Removed. >+ * web-platform-tests/xhr/send-send.worker.js: Removed. >+ * web-platform-tests/xhr/send-usp-expected.txt: Removed. >+ * web-platform-tests/xhr/send-usp.html: Removed. >+ * web-platform-tests/xhr/send-usp.js: Removed. >+ > 2018-09-12 Chris Dumez <cdumez@apple.com> > > Unreviewed, rebaseline imported/w3c/web-platform-tests/url/failure.html after r235808. >diff --git a/LayoutTests/TestExpectations b/LayoutTests/TestExpectations >index 810a898cac80c7a90756d9b2ffc72d8cf90aff1f..37b6b35f23858fed7a86aa2852956635b7873d77 100644 >--- a/LayoutTests/TestExpectations >+++ b/LayoutTests/TestExpectations >@@ -1942,8 +1942,6 @@ webkit.org/b/170699 [ Debug ] imported/w3c/web-platform-tests/html/webappapis/ti > > webkit.org/b/90724 compositing/iframes/iframe-size-from-zero.html [ Failure Pass ] > >-webkit.org/b/171031 imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl.htm [ Failure ] >- > webkit.org/b/172961 fast/mediacapturefromelement/CanvasCaptureMediaStream-2d-events.html [ Pass Timeout ] > > webkit.org/b/172378 fast/loader/recursive-before-unload-crash.html [ Skip ] >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/OWNERS b/LayoutTests/imported/w3c/web-platform-tests/xhr/OWNERS >deleted file mode 100644 >index 5256cf3d602b0757464fb2131b15396d344b3e79..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/OWNERS >+++ /dev/null >@@ -1,12 +0,0 @@ >-@emilio >-@hallvors >-@kangxu >-@caitp >-@Manishearth >-@jungkees >-@ibelem >-@mathiasbynens >-@ronkorving >-@jdm >-@annevk >-@wisniewskit >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open-expected.txt >deleted file mode 100644 >index d9df1a32ddfe62ad0f98411520944e20f841cd5d..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open-expected.txt >+++ /dev/null >@@ -1,3 +0,0 @@ >- >-PASS XMLHttpRequest: abort() during OPEN >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.htm b/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.htm >deleted file mode 100644 >index dde94f2398689a3c96096d7e91e6e1a97ca3ed85..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.htm >+++ /dev/null >@@ -1,14 +0,0 @@ >-<!doctype html> >-<html> >- <head> >- <title>XMLHttpRequest: abort() during OPEN</title> >- <script src="/resources/testharness.js"></script> >- <script src="/resources/testharnessreport.js"></script> >- <link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[5]" /> >- <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following-sibling::ol/li[1]" /> >- </head> >- <body> >- <div id="log"></div> >- <script src="abort-during-open.js"></script> >- </body> >-</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.js b/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.js >deleted file mode 100644 >index 26d3f57e44aadf66ca1d750f9e30bcbafc588ec4..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.js >+++ /dev/null >@@ -1,18 +0,0 @@ >-var test = async_test() >-test.step(function() { >- var client = new XMLHttpRequest() >- client.open("GET", "...") >- client.onreadystatechange = function() { >- test.step(function() { >- assert_unreached() >- }) >- } >- assert_equals(client.readyState, 1, "before abort()") >- assert_equals(client.status, 0) >- assert_equals(client.statusText, "") >- client.abort() >- assert_equals(client.readyState, 1, "after abort()") >- assert_equals(client.status, 0) >- assert_equals(client.statusText, "") >-}) >-test.done() >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker-expected.txt >deleted file mode 100644 >index c2c15e0b8a0e54a623bcb4fdca1f4cef72eeb240..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker-expected.txt >+++ /dev/null >@@ -1,3 +0,0 @@ >- >-PASS Untitled >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker.html b/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker.html >deleted file mode 100644 >index 2382913528e693b3a5d56c660a45060980b548c3..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker.html >+++ /dev/null >@@ -1 +0,0 @@ >-<!-- This file is required for WebKit test infrastructure to run the templated test --> >\ No newline at end of file >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker.js b/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker.js >deleted file mode 100644 >index ffb687d0c87e86fb1b07a42b4c3d6e589a0e8e1a..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/abort-during-open.worker.js >+++ /dev/null >@@ -1,3 +0,0 @@ >-importScripts("/resources/testharness.js"); >-importScripts("abort-during-open.js"); >-done(); >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl-expected.txt >deleted file mode 100644 >index 15860ed0b681a3a9c70831ef2a6321683cac16ae..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl-expected.txt >+++ /dev/null >@@ -1,5 +0,0 @@ >- >-PASS Casing of known headers >-FAIL Casing of known headers 1 assert_regexp_match: expected object "/content-TYPE/" but got "Host: localhost:8800\r\nContent-Type: x/x\r\nConnection: keep-alive\r\nTHIS-IS-A-TEST: 1, 2\r\nAccept: */*\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/605.1.7+ (KHTML, like Gecko)\r\nReferer: http://localhost:8800/XMLHttpRequest/getallresponseheaders-cl.htm\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\n" >-PASS Casing of known headers 2 >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl.htm b/LayoutTests/imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl.htm >deleted file mode 100644 >index a6f7272e987f04f963e28c23d477e506bf3e0e21..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl.htm >+++ /dev/null >@@ -1,27 +0,0 @@ >-<!doctype html> >-<title>Casing of known headers</title> >-<script src=/resources/testharness.js></script> >-<script src=/resources/testharnessreport.js></script> >-<script> >-test(() => { >- const client = new XMLHttpRequest >- client.open("GET", "resources/header-content-length.asis", false) >- client.send() >- assert_equals(client.getAllResponseHeaders(), "content-length: 0\r\n") >-}) >-test(() => { >- const client = new XMLHttpRequest >- client.open("GET", "resources/echo-headers.py", false) >- client.setRequestHeader("THIS-IS-A-TEST", "1") >- client.setRequestHeader("THIS-is-A-test", "2") >- client.setRequestHeader("content-TYPE", "x/x") >- client.send() >- assert_regexp_match(client.responseText, /content-TYPE/) >- assert_regexp_match(client.responseText, /THIS-IS-A-TEST: 1, 2/) >-}) >-promise_test(() => { >- return fetch("resources/echo-headers.py", {headers: [["THIS-is-A-test", 1], ["THIS-IS-A-TEST", 2]] }).then(res => res.text()).then(body => { >- assert_regexp_match(body, /THIS-is-A-test: 1, 2/) >- }) >-}) >-</script> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/interfaces-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/interfaces-expected.txt >deleted file mode 100644 >index eec11b308da6623f7b259fb2c8c61017a289d75f..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/interfaces-expected.txt >+++ /dev/null >@@ -1,170 +0,0 @@ >-CONSOLE MESSAGE: line 482: callback not yet supported >-CONSOLE MESSAGE: line 482: callback not yet supported >-XMLHttpRequest IDL tests >- >- >-PASS Test driver >-PASS XMLHttpRequestEventTarget interface: existence and properties of interface object >-PASS XMLHttpRequestEventTarget interface object length >-PASS XMLHttpRequestEventTarget interface object name >-PASS XMLHttpRequestEventTarget interface: existence and properties of interface prototype object >-PASS XMLHttpRequestEventTarget interface: existence and properties of interface prototype object's "constructor" property >-PASS XMLHttpRequestEventTarget interface: existence and properties of interface prototype object's @@unscopables property >-PASS XMLHttpRequestEventTarget interface: attribute onloadstart >-PASS XMLHttpRequestEventTarget interface: attribute onprogress >-PASS XMLHttpRequestEventTarget interface: attribute onabort >-PASS XMLHttpRequestEventTarget interface: attribute onerror >-PASS XMLHttpRequestEventTarget interface: attribute onload >-PASS XMLHttpRequestEventTarget interface: attribute ontimeout >-PASS XMLHttpRequestEventTarget interface: attribute onloadend >-PASS XMLHttpRequestUpload interface: existence and properties of interface object >-PASS XMLHttpRequestUpload interface object length >-PASS XMLHttpRequestUpload interface object name >-PASS XMLHttpRequestUpload interface: existence and properties of interface prototype object >-PASS XMLHttpRequestUpload interface: existence and properties of interface prototype object's "constructor" property >-PASS XMLHttpRequestUpload interface: existence and properties of interface prototype object's @@unscopables property >-PASS XMLHttpRequestUpload must be primary interface of (new XMLHttpRequest()).upload >-PASS Stringification of (new XMLHttpRequest()).upload >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onloadstart" with the proper type >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onprogress" with the proper type >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onabort" with the proper type >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onerror" with the proper type >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onload" with the proper type >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "ontimeout" with the proper type >-PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onloadend" with the proper type >-PASS XMLHttpRequest interface: existence and properties of interface object >-PASS XMLHttpRequest interface object length >-PASS XMLHttpRequest interface object name >-PASS XMLHttpRequest interface: existence and properties of interface prototype object >-PASS XMLHttpRequest interface: existence and properties of interface prototype object's "constructor" property >-PASS XMLHttpRequest interface: existence and properties of interface prototype object's @@unscopables property >-PASS XMLHttpRequest interface: attribute onreadystatechange >-PASS XMLHttpRequest interface: constant UNSENT on interface object >-PASS XMLHttpRequest interface: constant UNSENT on interface prototype object >-PASS XMLHttpRequest interface: constant OPENED on interface object >-PASS XMLHttpRequest interface: constant OPENED on interface prototype object >-PASS XMLHttpRequest interface: constant HEADERS_RECEIVED on interface object >-PASS XMLHttpRequest interface: constant HEADERS_RECEIVED on interface prototype object >-PASS XMLHttpRequest interface: constant LOADING on interface object >-PASS XMLHttpRequest interface: constant LOADING on interface prototype object >-PASS XMLHttpRequest interface: constant DONE on interface object >-PASS XMLHttpRequest interface: constant DONE on interface prototype object >-PASS XMLHttpRequest interface: attribute readyState >-PASS XMLHttpRequest interface: operation open(ByteString, USVString) >-PASS XMLHttpRequest interface: operation open(ByteString, USVString, boolean, USVString, USVString) >-PASS XMLHttpRequest interface: operation setRequestHeader(ByteString, ByteString) >-PASS XMLHttpRequest interface: attribute timeout >-PASS XMLHttpRequest interface: attribute withCredentials >-PASS XMLHttpRequest interface: attribute upload >-PASS XMLHttpRequest interface: operation send([object Object],[object Object]) >-PASS XMLHttpRequest interface: operation abort() >-PASS XMLHttpRequest interface: attribute responseURL >-PASS XMLHttpRequest interface: attribute status >-PASS XMLHttpRequest interface: attribute statusText >-PASS XMLHttpRequest interface: operation getResponseHeader(ByteString) >-PASS XMLHttpRequest interface: operation getAllResponseHeaders() >-PASS XMLHttpRequest interface: operation overrideMimeType(DOMString) >-PASS XMLHttpRequest interface: attribute responseType >-PASS XMLHttpRequest interface: attribute response >-PASS XMLHttpRequest interface: attribute responseText >-PASS XMLHttpRequest interface: attribute responseXML >-PASS XMLHttpRequest must be primary interface of new XMLHttpRequest() >-PASS Stringification of new XMLHttpRequest() >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "onreadystatechange" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "UNSENT" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "OPENED" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "HEADERS_RECEIVED" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "LOADING" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "DONE" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "readyState" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "open(ByteString, USVString)" with the proper type >-PASS XMLHttpRequest interface: calling open(ByteString, USVString) on new XMLHttpRequest() with too few arguments must throw TypeError >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "open(ByteString, USVString, boolean, USVString, USVString)" with the proper type >-PASS XMLHttpRequest interface: calling open(ByteString, USVString, boolean, USVString, USVString) on new XMLHttpRequest() with too few arguments must throw TypeError >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "setRequestHeader(ByteString, ByteString)" with the proper type >-PASS XMLHttpRequest interface: calling setRequestHeader(ByteString, ByteString) on new XMLHttpRequest() with too few arguments must throw TypeError >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "timeout" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "withCredentials" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "upload" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "send([object Object],[object Object])" with the proper type >-PASS XMLHttpRequest interface: calling send([object Object],[object Object]) on new XMLHttpRequest() with too few arguments must throw TypeError >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "abort()" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "responseURL" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "status" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "statusText" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "getResponseHeader(ByteString)" with the proper type >-PASS XMLHttpRequest interface: calling getResponseHeader(ByteString) on new XMLHttpRequest() with too few arguments must throw TypeError >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "getAllResponseHeaders()" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "overrideMimeType(DOMString)" with the proper type >-PASS XMLHttpRequest interface: calling overrideMimeType(DOMString) on new XMLHttpRequest() with too few arguments must throw TypeError >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "responseType" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "response" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "responseText" with the proper type >-PASS XMLHttpRequest interface: new XMLHttpRequest() must inherit property "responseXML" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "onloadstart" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "onprogress" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "onabort" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "onerror" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "onload" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "ontimeout" with the proper type >-PASS XMLHttpRequestEventTarget interface: new XMLHttpRequest() must inherit property "onloadend" with the proper type >-PASS FormData interface: existence and properties of interface object >-PASS FormData interface object length >-PASS FormData interface object name >-PASS FormData interface: existence and properties of interface prototype object >-PASS FormData interface: existence and properties of interface prototype object's "constructor" property >-PASS FormData interface: existence and properties of interface prototype object's @@unscopables property >-PASS FormData interface: operation append(USVString, Blob, USVString) >-PASS FormData interface: operation append(USVString, USVString) >-PASS FormData interface: operation delete(USVString) >-PASS FormData interface: operation get(USVString) >-PASS FormData interface: operation getAll(USVString) >-PASS FormData interface: operation has(USVString) >-PASS FormData interface: operation set(USVString, Blob, USVString) >-PASS FormData interface: operation set(USVString, USVString) >-PASS FormData must be primary interface of new FormData() >-PASS Stringification of new FormData() >-PASS FormData interface: new FormData() must inherit property "append(USVString, Blob, USVString)" with the proper type >-PASS FormData interface: calling append(USVString, Blob, USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "append(USVString, USVString)" with the proper type >-PASS FormData interface: calling append(USVString, USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "delete(USVString)" with the proper type >-PASS FormData interface: calling delete(USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "get(USVString)" with the proper type >-PASS FormData interface: calling get(USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "getAll(USVString)" with the proper type >-PASS FormData interface: calling getAll(USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "has(USVString)" with the proper type >-PASS FormData interface: calling has(USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "set(USVString, Blob, USVString)" with the proper type >-PASS FormData interface: calling set(USVString, Blob, USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData interface: new FormData() must inherit property "set(USVString, USVString)" with the proper type >-PASS FormData interface: calling set(USVString, USVString) on new FormData() with too few arguments must throw TypeError >-PASS FormData must be primary interface of new FormData(form) >-PASS Stringification of new FormData(form) >-PASS FormData interface: new FormData(form) must inherit property "append(USVString, Blob, USVString)" with the proper type >-PASS FormData interface: calling append(USVString, Blob, USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "append(USVString, USVString)" with the proper type >-PASS FormData interface: calling append(USVString, USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "delete(USVString)" with the proper type >-PASS FormData interface: calling delete(USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "get(USVString)" with the proper type >-PASS FormData interface: calling get(USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "getAll(USVString)" with the proper type >-PASS FormData interface: calling getAll(USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "has(USVString)" with the proper type >-PASS FormData interface: calling has(USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "set(USVString, Blob, USVString)" with the proper type >-PASS FormData interface: calling set(USVString, Blob, USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS FormData interface: new FormData(form) must inherit property "set(USVString, USVString)" with the proper type >-PASS FormData interface: calling set(USVString, USVString) on new FormData(form) with too few arguments must throw TypeError >-PASS ProgressEvent interface: existence and properties of interface object >-PASS ProgressEvent interface object length >-PASS ProgressEvent interface object name >-PASS ProgressEvent interface: existence and properties of interface prototype object >-PASS ProgressEvent interface: existence and properties of interface prototype object's "constructor" property >-PASS ProgressEvent interface: existence and properties of interface prototype object's @@unscopables property >-PASS ProgressEvent interface: attribute lengthComputable >-PASS ProgressEvent interface: attribute loaded >-PASS ProgressEvent interface: attribute total >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/interfaces.html b/LayoutTests/imported/w3c/web-platform-tests/xhr/interfaces.html >deleted file mode 100644 >index 56ba5523e318ba6419e3b7fbbf75313561a873f6..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/interfaces.html >+++ /dev/null >@@ -1,136 +0,0 @@ >-<!doctype html> >-<meta charset=utf-8> >-<title>XMLHttpRequest IDL tests</title> >-<script src=/resources/testharness.js></script> >-<script src=/resources/testharnessreport.js></script> >-<script src=/resources/WebIDLParser.js></script> >-<script src=/resources/idlharness.js></script> >- >-<h1>XMLHttpRequest IDL tests</h1> >-<div id=log></div> >- >-<script type=text/plain class=untested> >-[TreatNonCallableAsNull] >-callback EventHandlerNonNull = any (Event event); >-typedef EventHandlerNonNull? EventHandler; >-</script> >-<script type=text/plain> >-/*[Exposed=(Window,Worker)]*/ >-interface XMLHttpRequestEventTarget : EventTarget { >- // event handlers >- attribute EventHandler onloadstart; >- attribute EventHandler onprogress; >- attribute EventHandler onabort; >- attribute EventHandler onerror; >- attribute EventHandler onload; >- attribute EventHandler ontimeout; >- attribute EventHandler onloadend; >-}; >- >-/*[Exposed=(Window,Worker)]*/ >-interface XMLHttpRequestUpload : XMLHttpRequestEventTarget { >-}; >- >-enum XMLHttpRequestResponseType { >- "", >- "arraybuffer", >- "blob", >- "document", >- "json", >- "text" >-}; >- >-[Constructor/*, >- Exposed=(Window,Worker)*/] >-interface XMLHttpRequest : XMLHttpRequestEventTarget { >- // event handler >- attribute EventHandler onreadystatechange; >- >- // states >- const unsigned short UNSENT = 0; >- const unsigned short OPENED = 1; >- const unsigned short HEADERS_RECEIVED = 2; >- const unsigned short LOADING = 3; >- const unsigned short DONE = 4; >- readonly attribute unsigned short readyState; >- >- // request >- void open(ByteString method, USVString url); >- void open(ByteString method, USVString url, boolean async, optional USVString? username = null, optional USVString? password = null); >- void setRequestHeader(ByteString name, ByteString value); >- attribute unsigned long timeout; >- attribute boolean withCredentials; >- readonly attribute XMLHttpRequestUpload upload; >- void send(optional (Document or BodyInit)? body = null); >- void abort(); >- >- // response >- readonly attribute USVString responseURL; >- readonly attribute unsigned short status; >- readonly attribute ByteString statusText; >- ByteString? getResponseHeader(ByteString name); >- ByteString getAllResponseHeaders(); >- void overrideMimeType(DOMString mime); >- attribute XMLHttpRequestResponseType responseType; >- readonly attribute any response; >- readonly attribute USVString responseText; >- [Exposed=Window] readonly attribute Document? responseXML; >-}; >- >-typedef (File or USVString) FormDataEntryValue; >- >-[Constructor(optional HTMLFormElement form)/*, >- Exposed=(Window,Worker)*/] >-interface FormData { >- void append(USVString name, Blob value, optional USVString filename); >- void append(USVString name, USVString value); >- void delete(USVString name); >- FormDataEntryValue? get(USVString name); >- sequence<FormDataEntryValue> getAll(USVString name); >- boolean has(USVString name); >- void set(USVString name, Blob value, optional USVString filename); >- void set(USVString name, USVString value); >- /*iterable<USVString, FormDataEntryValue>;*/ >-}; >- >-[Constructor(DOMString type, optional ProgressEventInit eventInitDict)/*, >- Exposed=(Window,Worker)*/] >-interface ProgressEvent : Event { >- readonly attribute boolean lengthComputable; >- readonly attribute unsigned long long loaded; >- readonly attribute unsigned long long total; >-}; >- >-dictionary ProgressEventInit : EventInit { >- boolean lengthComputable = false; >- unsigned long long loaded = 0; >- unsigned long long total = 0; >-}; >-</script> >-<script> >-"use strict"; >-var form = document.createElement("form"); >-var idlArray = new IdlArray(); >- >-function doTest(domIdl) { >- idlArray.add_untested_idls(domIdl); >- [].forEach.call(document.querySelectorAll("script[type=text\\/plain]"), function(node) { >- if (node.className == "untested") { >- idlArray.add_untested_idls(node.textContent); >- } else { >- idlArray.add_idls(node.textContent); >- } >- }); >- idlArray.add_objects({ >- XMLHttpRequest: ['new XMLHttpRequest()'], >- XMLHttpRequestUpload: ['(new XMLHttpRequest()).upload'], >- FormData: ['new FormData()', 'new FormData(form)'] >- }); >- idlArray.test(); >-} >- >-promise_test(function() { >- return fetch("/interfaces/dom.idl").then(response => response.text()) >- .then(doTest); >-}, "Test driver"); >-</script> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/open-url-bogus-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/open-url-bogus-expected.txt >deleted file mode 100644 >index fd4e55b88cc9371ce38abb6700713c65f80b2bb9..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/open-url-bogus-expected.txt >+++ /dev/null >@@ -1,7 +0,0 @@ >- >-PASS XMLHttpRequest: open() - bogus URLs (//[) >-FAIL XMLHttpRequest: open() - bogus URLs (ftp:) assert_throws: function "function () { client.open("GET", url) }" did not throw >-PASS XMLHttpRequest: open() - bogus URLs (http://a a/) >-PASS XMLHttpRequest: open() - bogus URLs (http:////////////) >-PASS XMLHttpRequest: open() - bogus URLs (http://u:p@/) >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/open-url-bogus.htm b/LayoutTests/imported/w3c/web-platform-tests/xhr/open-url-bogus.htm >deleted file mode 100644 >index 117bd4958a531a0ab52cba2471e5997ae8a71991..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/open-url-bogus.htm >+++ /dev/null >@@ -1,25 +0,0 @@ >-<!DOCTYPE html> >-<html> >- <head> >- <title>XMLHttpRequest: open() - bogus URLs</title> >- <script src="/resources/testharness.js"></script> >- <script src="/resources/testharnessreport.js"></script> >- <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol/li[7] following::ol/li[8]" /> >- </head> >- <body> >- <div id="log"></div> >- <script> >- function url(url) { >- test(function() { >- var client = new XMLHttpRequest() >- assert_throws("SyntaxError", function() { client.open("GET", url) }) >- }, document.title + " (" + url + ")") >- } >- url("//[") >- url("ftp:") >- url("http://a a/") >- url("http:////////////") >- url("http://u:p@/") >- </script> >- </body> >-</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/overridemimetype-done-state-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/overridemimetype-done-state-expected.txt >deleted file mode 100644 >index 86efa4d35ee1c58116c3c7a63320e20e50f2b018..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/overridemimetype-done-state-expected.txt >+++ /dev/null >@@ -1,3 +0,0 @@ >- >-PASS XMLHttpRequest: overrideMimeType() in DONE state >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/overridemimetype-done-state.htm b/LayoutTests/imported/w3c/web-platform-tests/xhr/overridemimetype-done-state.htm >deleted file mode 100644 >index a1711e6096f3125c3dad1db53f3a62747e79b759..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/overridemimetype-done-state.htm >+++ /dev/null >@@ -1,26 +0,0 @@ >-<!doctype html> >-<html> >- <head> >- <title>XMLHttpRequest: overrideMimeType() in DONE state</title> >- <meta charset="utf-8"> >- <script src="/resources/testharness.js"></script> >- <script src="/resources/testharnessreport.js"></script> >- <link rel="help" href="https://xhr.spec.whatwg.org/#the-overridemimetype()-method" data-tested-assertations="/following::ol/li[1]" /> >- </head> >- <body> >- <div id="log"></div> >- <script> >- var test = async_test(); >- var client = new XMLHttpRequest(); >- client.onreadystatechange = test.step_func( function() { >- if (client.readyState !== 4) return; >- assert_throws("InvalidStateError", function() { client.overrideMimeType('application/xml;charset=Shift-JIS'); }); >- assert_equals(client.responseXML, null); >- test.done(); >- }); >- client.open("GET", "resources/status.py?type="+encodeURIComponent('text/plain;charset=iso-8859-1')+'&content=%3Cmsg%3E%83%65%83%58%83%67%3C%2Fmsg%3E'); >- client.send(); >- </script> >- >- </body> >-</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/readme.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/readme.txt >deleted file mode 100644 >index 2e5f64cd5182c3c8988e850b19c94016f6b674d0..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/readme.txt >+++ /dev/null >@@ -1,31 +0,0 @@ >-Currently this testsuite tries to provide tests for XMLHttpRequest level 1. >-This test suite is not stable and is still under development. Tests may >-contain bugs and may change over time as a result of those bugs being fixed. >- >-When more browsers implement XMLHttpRequest level 2 this testsuite will >-slowly evolve most likely. >- >- http://dev.w3.org/2006/webapi/XMLHttpRequest/ >- http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ >- >-If the folders above give the status of the feature tested you can assume >-this is against level 1 unless explicitly stated otherwise. >- >-NOTE: readyState and onreadystatechange are tested throughout the various >-tests. statusText is tested together with status. >- >-NOTE: open-url-base* have absolute paths in them. They need to be adjusted >-on a per location basis. >- >-NOTE: open-url-base-inserted-after-open.htm, open-url-base-inserted.htm, >-send-authentication.htm and open-url-base.htm refer to localhost. >- >- >-TESTS THAT ARE UNSTABLE AND (PROBABLY) NEED CHANGES >- responsexml-basic (see email WHATWG) >- send-authentication (see "user:password" debacle) >- >- >-TESTS NOT STARTED ON YET >- >-<iframe> document.domain = w3.org create cross-origin xhr object >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/responsetype-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/responsetype-expected.txt >deleted file mode 100644 >index 4d2ec559557306391ffad1eceea780e748a859a0..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/responsetype-expected.txt >+++ /dev/null >@@ -1,51 +0,0 @@ >-CONSOLE MESSAGE: line 1253: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context. >-CONSOLE MESSAGE: line 1253: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context. >-CONSOLE MESSAGE: line 1253: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context. >-CONSOLE MESSAGE: line 1253: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context. >-CONSOLE MESSAGE: line 1253: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context. >-CONSOLE MESSAGE: line 1253: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context. >- >-PASS Initial value of responseType >-PASS Set responseType to "" when readyState is UNSENT. >-PASS Set responseType to "" when readyState is OPENED. >-PASS Set responseType to "" when readyState is HEADERS_RECEIVED. >-PASS Set responseType to "" when readyState is LOADING. >-PASS Set responseType to "" when readyState is DONE. >-PASS Set responseType to "" when readyState is OPENED and the sync flag is set. >-PASS Set responseType to "" when readyState is DONE and the sync flag is set. >-PASS Set responseType to "json" when readyState is UNSENT. >-PASS Set responseType to "json" when readyState is OPENED. >-PASS Set responseType to "json" when readyState is HEADERS_RECEIVED. >-PASS Set responseType to "json" when readyState is LOADING. >-PASS Set responseType to "json" when readyState is DONE. >-PASS Set responseType to "json" when readyState is OPENED and the sync flag is set. >-PASS Set responseType to "json" when readyState is DONE and the sync flag is set. >-PASS Set responseType to "document" when readyState is UNSENT. >-PASS Set responseType to "document" when readyState is OPENED. >-PASS Set responseType to "document" when readyState is HEADERS_RECEIVED. >-PASS Set responseType to "document" when readyState is LOADING. >-PASS Set responseType to "document" when readyState is DONE. >-PASS Set responseType to "document" when readyState is OPENED and the sync flag is set. >-PASS Set responseType to "document" when readyState is DONE and the sync flag is set. >-PASS Set responseType to "arraybuffer" when readyState is UNSENT. >-PASS Set responseType to "arraybuffer" when readyState is OPENED. >-PASS Set responseType to "arraybuffer" when readyState is HEADERS_RECEIVED. >-PASS Set responseType to "arraybuffer" when readyState is LOADING. >-PASS Set responseType to "arraybuffer" when readyState is DONE. >-PASS Set responseType to "arraybuffer" when readyState is OPENED and the sync flag is set. >-PASS Set responseType to "arraybuffer" when readyState is DONE and the sync flag is set. >-PASS Set responseType to "blob" when readyState is UNSENT. >-PASS Set responseType to "blob" when readyState is OPENED. >-PASS Set responseType to "blob" when readyState is HEADERS_RECEIVED. >-PASS Set responseType to "blob" when readyState is LOADING. >-PASS Set responseType to "blob" when readyState is DONE. >-PASS Set responseType to "blob" when readyState is OPENED and the sync flag is set. >-PASS Set responseType to "blob" when readyState is DONE and the sync flag is set. >-PASS Set responseType to "text" when readyState is UNSENT. >-PASS Set responseType to "text" when readyState is OPENED. >-PASS Set responseType to "text" when readyState is HEADERS_RECEIVED. >-PASS Set responseType to "text" when readyState is LOADING. >-PASS Set responseType to "text" when readyState is DONE. >-PASS Set responseType to "text" when readyState is OPENED and the sync flag is set. >-PASS Set responseType to "text" when readyState is DONE and the sync flag is set. >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/responsetype.html b/LayoutTests/imported/w3c/web-platform-tests/xhr/responsetype.html >deleted file mode 100644 >index ade604417a92e4781e533e97d8b013e52fe654f6..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/responsetype.html >+++ /dev/null >@@ -1,96 +0,0 @@ >-<!DOCTYPE html> >-<meta charset="utf-8"> >-<title>XMLHttpRequest.responseType</title> >-<link rel="author" title="Mathias Bynens" href="http://mathiasbynens.be/"> >-<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> >-<link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetype-attribute"> >-<script src="/resources/testharness.js"></script> >-<script src="/resources/testharnessreport.js"></script> >-<div id="log"></div> >-<script> >-test(function() { >- var xhr = new XMLHttpRequest(); >- assert_equals(xhr.responseType, ''); >-}, 'Initial value of responseType'); >- >-var types = ['', 'json', 'document', 'arraybuffer', 'blob', 'text']; >-types.forEach(function(type) { >- test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.responseType = type; >- assert_equals(xhr.responseType, type); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is UNSENT.'); >- >- test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.open('get', '/'); >- xhr.responseType = type; >- assert_equals(xhr.responseType, type); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is OPENED.'); >- >- async_test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.open('get', '/'); >- xhr.onreadystatechange = this.step_func(function() { >- if (xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED) { >- xhr.responseType = type; >- assert_equals(xhr.responseType, type); >- this.done(); >- } >- }); >- xhr.send(); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is HEADERS_RECEIVED.'); >- >- async_test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.open('get', '/'); >- xhr.onreadystatechange = this.step_func(function() { >- if (xhr.readyState === XMLHttpRequest.LOADING) { >- assert_throws("InvalidStateError", function() { >- xhr.responseType = type; >- }); >- assert_equals(xhr.responseType, ""); >- this.done(); >- } >- }); >- xhr.send(); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is LOADING.'); >- >- async_test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.open('get', '/'); >- xhr.onreadystatechange = this.step_func(function() { >- if (xhr.readyState === XMLHttpRequest.DONE) { >- assert_throws("InvalidStateError", function() { >- xhr.responseType = type; >- }); >- assert_equals(xhr.responseType, ""); >- this.done(); >- } >- }); >- xhr.send(); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is DONE.'); >- >- // Note: the case of setting responseType first, and then calling synchronous >- // open(), is tested in open-method-responsetype-set-sync.htm. >- test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.open('get', '/', false); >- assert_throws("InvalidAccessError", function() { >- xhr.responseType = type; >- }); >- assert_equals(xhr.responseType, ""); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is OPENED and the sync flag is set.'); >- >- test(function() { >- var xhr = new XMLHttpRequest(); >- xhr.open('get', '/', false); >- xhr.send(); >- assert_equals(xhr.readyState, XMLHttpRequest.DONE); >- assert_throws("InvalidStateError", function() { >- xhr.responseType = type; >- }); >- assert_equals(xhr.responseType, ""); >- }, 'Set responseType to ' + format_value(type) + ' when readyState is DONE and the sync flag is set.'); >-}); >-</script> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-non-same-origin.sub-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-non-same-origin.sub-expected.txt >deleted file mode 100644 >index ee88c8520b383ed7c0fb88703ecb328233e02d2c..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-non-same-origin.sub-expected.txt >+++ /dev/null >@@ -1,17 +0,0 @@ >-CONSOLE MESSAGE: line 23: Cross origin requests are only supported for HTTP. >-CONSOLE MESSAGE: line 23: XMLHttpRequest cannot load mailto:test@example.org due to access control checks. >-CONSOLE MESSAGE: line 23: Cross origin requests are only supported for HTTP. >-CONSOLE MESSAGE: line 23: XMLHttpRequest cannot load tel:+31600000000 due to access control checks. >-CONSOLE MESSAGE: line 23: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin. >-CONSOLE MESSAGE: line 23: XMLHttpRequest cannot load http://127.0.0.1:8800/ due to access control checks. >-CONSOLE MESSAGE: line 23: Cross origin requests are only supported for HTTP. >-CONSOLE MESSAGE: line 23: XMLHttpRequest cannot load javascript:alert('FAIL') due to access control checks. >-CONSOLE MESSAGE: line 23: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin. >-CONSOLE MESSAGE: line 23: XMLHttpRequest cannot load http://127.0.0.1:8800/folder.txt due to access control checks. >- >-PASS XMLHttpRequest: send() - non same-origin (mailto:test@example.org) >-PASS XMLHttpRequest: send() - non same-origin (tel:+31600000000) >-PASS XMLHttpRequest: send() - non same-origin (http://127.0.0.1:8800) >-PASS XMLHttpRequest: send() - non same-origin (javascript:alert('FAIL')) >-PASS XMLHttpRequest: send() - non same-origin (folder.txt) >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-non-same-origin.sub.htm b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-non-same-origin.sub.htm >deleted file mode 100644 >index 91c3845617fbd2d38af04bd7e4006ebce296613b..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-non-same-origin.sub.htm >+++ /dev/null >@@ -1,33 +0,0 @@ >-<!DOCTYPE html> >-<html> >- <head> >- <title>XMLHttpRequest: send() - non same-origin</title> >- <script src="/resources/testharness.js"></script> >- <script src="/resources/testharnessreport.js"></script> >- <base> >- <link rel="help" href="https://xhr.spec.whatwg.org/#cross-origin-request-steps" data-tested-assertations="/following::DL[2]/DT[1] /following::DL[2]/DD[1]" /> >- <link rel="help" href="https://xhr.spec.whatwg.org/#cross-origin-request-event-rules" data-tested-assertations="/following::DL[1]/DT[2] /following::DL[1]/DD[2]" /> >- </head> >- <body> >- <div id="log"></div> >- <script src="/common/get-host-info.sub.js"></script> >- <script> >- // Setting base URL before running the tests >- var host_info = get_host_info(); >- document.getElementsByTagName("base")[0].setAttribute("href", host_info.HTTP_REMOTE_ORIGIN); >- >- function url(url) { >- test(function() { >- var client = new XMLHttpRequest() >- client.open("GET", url, false) >- assert_throws("NetworkError", function() { client.send() }) >- }, document.title + " (" + url + ")") >- } >- url("mailto:test@example.org") >- url("tel:+31600000000") >- url(host_info.HTTP_REMOTE_ORIGIN) >- url("javascript:alert('FAIL')") >- url("folder.txt") >- </script> >- </body> >-</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send-expected.txt >deleted file mode 100644 >index 2a6b6c95dc9e91a04f5acdfee142493744e76309..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send-expected.txt >+++ /dev/null >@@ -1,3 +0,0 @@ >- >-PASS XMLHttpRequest: send() - send() >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.htm b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.htm >deleted file mode 100644 >index cbcbdb44e00cf57f694222c5405a9516c933f9e8..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.htm >+++ /dev/null >@@ -1,13 +0,0 @@ >-<!doctype html> >-<html> >- <head> >- <title>XMLHttpRequest: send() - send()</title> >- <script src="/resources/testharness.js"></script> >- <script src="/resources/testharnessreport.js"></script> >- <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::ol/li[2]" /> >- </head> >- <body> >- <div id="log"></div> >- <script src="send-send.js"></script> >- </body> >-</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.js b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.js >deleted file mode 100644 >index 2e7fe865f3b21c56c4eb91bc468b4d3907455911..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.js >+++ /dev/null >@@ -1,7 +0,0 @@ >-test(function() { >- var client = new XMLHttpRequest() >- client.open("GET", "resources/well-formed.xml") >- client.send(null) >- assert_throws("InvalidStateError", function() { client.send(null) }) >- client.abort() >-}) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker-expected.txt >deleted file mode 100644 >index c2c15e0b8a0e54a623bcb4fdca1f4cef72eeb240..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker-expected.txt >+++ /dev/null >@@ -1,3 +0,0 @@ >- >-PASS Untitled >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker.html b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker.html >deleted file mode 100644 >index 2382913528e693b3a5d56c660a45060980b548c3..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker.html >+++ /dev/null >@@ -1 +0,0 @@ >-<!-- This file is required for WebKit test infrastructure to run the templated test --> >\ No newline at end of file >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker.js b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker.js >deleted file mode 100644 >index 9d34ce63df22ddf6e057b04cc98adfae3a1a307f..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-send.worker.js >+++ /dev/null >@@ -1,3 +0,0 @@ >-importScripts("/resources/testharness.js"); >-importScripts("send-send.js"); >-done(); >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp-expected.txt >deleted file mode 100644 >index b9c1099b79da7954891579851da8473fc1936cea..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp-expected.txt >+++ /dev/null >@@ -1,131 +0,0 @@ >- >-PASS Overall fetch with URLSearchParams >-PASS XMLHttpRequest.send(URLSearchParams) (0) >-PASS XMLHttpRequest.send(URLSearchParams) (1) >-PASS XMLHttpRequest.send(URLSearchParams) (2) >-PASS XMLHttpRequest.send(URLSearchParams) (3) >-PASS XMLHttpRequest.send(URLSearchParams) (4) >-PASS XMLHttpRequest.send(URLSearchParams) (5) >-PASS XMLHttpRequest.send(URLSearchParams) (6) >-PASS XMLHttpRequest.send(URLSearchParams) (7) >-PASS XMLHttpRequest.send(URLSearchParams) (8) >-PASS XMLHttpRequest.send(URLSearchParams) (9) >-PASS XMLHttpRequest.send(URLSearchParams) (10) >-PASS XMLHttpRequest.send(URLSearchParams) (11) >-PASS XMLHttpRequest.send(URLSearchParams) (12) >-PASS XMLHttpRequest.send(URLSearchParams) (13) >-PASS XMLHttpRequest.send(URLSearchParams) (14) >-PASS XMLHttpRequest.send(URLSearchParams) (15) >-PASS XMLHttpRequest.send(URLSearchParams) (16) >-PASS XMLHttpRequest.send(URLSearchParams) (17) >-PASS XMLHttpRequest.send(URLSearchParams) (18) >-PASS XMLHttpRequest.send(URLSearchParams) (19) >-PASS XMLHttpRequest.send(URLSearchParams) (20) >-PASS XMLHttpRequest.send(URLSearchParams) (21) >-PASS XMLHttpRequest.send(URLSearchParams) (22) >-PASS XMLHttpRequest.send(URLSearchParams) (23) >-PASS XMLHttpRequest.send(URLSearchParams) (24) >-PASS XMLHttpRequest.send(URLSearchParams) (25) >-PASS XMLHttpRequest.send(URLSearchParams) (26) >-PASS XMLHttpRequest.send(URLSearchParams) (27) >-PASS XMLHttpRequest.send(URLSearchParams) (28) >-PASS XMLHttpRequest.send(URLSearchParams) (29) >-PASS XMLHttpRequest.send(URLSearchParams) (30) >-PASS XMLHttpRequest.send(URLSearchParams) (31) >-PASS XMLHttpRequest.send(URLSearchParams) (32) >-PASS XMLHttpRequest.send(URLSearchParams) (33) >-PASS XMLHttpRequest.send(URLSearchParams) (34) >-PASS XMLHttpRequest.send(URLSearchParams) (35) >-PASS XMLHttpRequest.send(URLSearchParams) (36) >-PASS XMLHttpRequest.send(URLSearchParams) (37) >-PASS XMLHttpRequest.send(URLSearchParams) (38) >-PASS XMLHttpRequest.send(URLSearchParams) (39) >-PASS XMLHttpRequest.send(URLSearchParams) (40) >-PASS XMLHttpRequest.send(URLSearchParams) (41) >-PASS XMLHttpRequest.send(URLSearchParams) (42) >-PASS XMLHttpRequest.send(URLSearchParams) (43) >-PASS XMLHttpRequest.send(URLSearchParams) (44) >-PASS XMLHttpRequest.send(URLSearchParams) (45) >-PASS XMLHttpRequest.send(URLSearchParams) (46) >-PASS XMLHttpRequest.send(URLSearchParams) (47) >-PASS XMLHttpRequest.send(URLSearchParams) (48) >-PASS XMLHttpRequest.send(URLSearchParams) (49) >-PASS XMLHttpRequest.send(URLSearchParams) (50) >-PASS XMLHttpRequest.send(URLSearchParams) (51) >-PASS XMLHttpRequest.send(URLSearchParams) (52) >-PASS XMLHttpRequest.send(URLSearchParams) (53) >-PASS XMLHttpRequest.send(URLSearchParams) (54) >-PASS XMLHttpRequest.send(URLSearchParams) (55) >-PASS XMLHttpRequest.send(URLSearchParams) (56) >-PASS XMLHttpRequest.send(URLSearchParams) (57) >-PASS XMLHttpRequest.send(URLSearchParams) (58) >-PASS XMLHttpRequest.send(URLSearchParams) (59) >-PASS XMLHttpRequest.send(URLSearchParams) (60) >-PASS XMLHttpRequest.send(URLSearchParams) (61) >-PASS XMLHttpRequest.send(URLSearchParams) (62) >-PASS XMLHttpRequest.send(URLSearchParams) (63) >-PASS XMLHttpRequest.send(URLSearchParams) (64) >-PASS XMLHttpRequest.send(URLSearchParams) (65) >-PASS XMLHttpRequest.send(URLSearchParams) (66) >-PASS XMLHttpRequest.send(URLSearchParams) (67) >-PASS XMLHttpRequest.send(URLSearchParams) (68) >-PASS XMLHttpRequest.send(URLSearchParams) (69) >-PASS XMLHttpRequest.send(URLSearchParams) (70) >-PASS XMLHttpRequest.send(URLSearchParams) (71) >-PASS XMLHttpRequest.send(URLSearchParams) (72) >-PASS XMLHttpRequest.send(URLSearchParams) (73) >-PASS XMLHttpRequest.send(URLSearchParams) (74) >-PASS XMLHttpRequest.send(URLSearchParams) (75) >-PASS XMLHttpRequest.send(URLSearchParams) (76) >-PASS XMLHttpRequest.send(URLSearchParams) (77) >-PASS XMLHttpRequest.send(URLSearchParams) (78) >-PASS XMLHttpRequest.send(URLSearchParams) (79) >-PASS XMLHttpRequest.send(URLSearchParams) (80) >-PASS XMLHttpRequest.send(URLSearchParams) (81) >-PASS XMLHttpRequest.send(URLSearchParams) (82) >-PASS XMLHttpRequest.send(URLSearchParams) (83) >-PASS XMLHttpRequest.send(URLSearchParams) (84) >-PASS XMLHttpRequest.send(URLSearchParams) (85) >-PASS XMLHttpRequest.send(URLSearchParams) (86) >-PASS XMLHttpRequest.send(URLSearchParams) (87) >-PASS XMLHttpRequest.send(URLSearchParams) (88) >-PASS XMLHttpRequest.send(URLSearchParams) (89) >-PASS XMLHttpRequest.send(URLSearchParams) (90) >-PASS XMLHttpRequest.send(URLSearchParams) (91) >-PASS XMLHttpRequest.send(URLSearchParams) (92) >-PASS XMLHttpRequest.send(URLSearchParams) (93) >-PASS XMLHttpRequest.send(URLSearchParams) (94) >-PASS XMLHttpRequest.send(URLSearchParams) (95) >-PASS XMLHttpRequest.send(URLSearchParams) (96) >-PASS XMLHttpRequest.send(URLSearchParams) (97) >-PASS XMLHttpRequest.send(URLSearchParams) (98) >-PASS XMLHttpRequest.send(URLSearchParams) (99) >-PASS XMLHttpRequest.send(URLSearchParams) (100) >-PASS XMLHttpRequest.send(URLSearchParams) (101) >-PASS XMLHttpRequest.send(URLSearchParams) (102) >-PASS XMLHttpRequest.send(URLSearchParams) (103) >-PASS XMLHttpRequest.send(URLSearchParams) (104) >-PASS XMLHttpRequest.send(URLSearchParams) (105) >-PASS XMLHttpRequest.send(URLSearchParams) (106) >-PASS XMLHttpRequest.send(URLSearchParams) (107) >-PASS XMLHttpRequest.send(URLSearchParams) (108) >-PASS XMLHttpRequest.send(URLSearchParams) (109) >-PASS XMLHttpRequest.send(URLSearchParams) (110) >-PASS XMLHttpRequest.send(URLSearchParams) (111) >-PASS XMLHttpRequest.send(URLSearchParams) (112) >-PASS XMLHttpRequest.send(URLSearchParams) (113) >-PASS XMLHttpRequest.send(URLSearchParams) (114) >-PASS XMLHttpRequest.send(URLSearchParams) (115) >-PASS XMLHttpRequest.send(URLSearchParams) (116) >-PASS XMLHttpRequest.send(URLSearchParams) (117) >-PASS XMLHttpRequest.send(URLSearchParams) (118) >-PASS XMLHttpRequest.send(URLSearchParams) (119) >-PASS XMLHttpRequest.send(URLSearchParams) (120) >-PASS XMLHttpRequest.send(URLSearchParams) (121) >-PASS XMLHttpRequest.send(URLSearchParams) (122) >-PASS XMLHttpRequest.send(URLSearchParams) (123) >-PASS XMLHttpRequest.send(URLSearchParams) (124) >-PASS XMLHttpRequest.send(URLSearchParams) (125) >-PASS XMLHttpRequest.send(URLSearchParams) (126) >-PASS XMLHttpRequest.send(URLSearchParams) (127) >- >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp.html b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp.html >deleted file mode 100644 >index 1753e5f3a5bd08b04d1956215ab5905c7552ceb2..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp.html >+++ /dev/null >@@ -1,10 +0,0 @@ >-<!DOCTYPE html> >-<meta charset=utf-8> >-<title>XMLHttpRequest.send(URLSearchParams)</title> >-<script src="/resources/testharness.js"></script> >-<script src="/resources/testharnessreport.js"></script> >-<script src="send-usp.js"></script> >-<div id="log"></div> >-<script> >-run_test(); >-</script> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp.js b/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp.js >deleted file mode 100644 >index c00b2e0e0ca82a10a629fb4a9f5c940edf02074c..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/send-usp.js >+++ /dev/null >@@ -1,48 +0,0 @@ >-const NUM_TESTS = 128; >- >-function encode(n) { >- if (n === 0x20) { >- return "\x2B"; >- } >- >- if (n === 0x2A || n === 0x2D || n === 0x2E || >- (0x30 <= n && n <= 0x39) || (0x41 <= n && n <= 0x5A) || >- n === 0x5F || (0x61 <= n && n <= 0x7A)) { >- return String.fromCharCode(n); >- } >- >- var s = n.toString(16).toUpperCase(); >- return "%" + (s.length === 2 ? s : '0' + s); >-} >- >-function run_test() { >- var tests = []; >- var overall_test = async_test("Overall fetch with URLSearchParams"); >- for (var i = 0; i < NUM_TESTS; i++) { >- // Multiple subtests so that failures can be fine-grained >- tests[i] = async_test("XMLHttpRequest.send(URLSearchParams) (" + i + ")"); >- } >- >- // We use a single XHR since this test tends to time out >- // with 128 consecutive fetches when run in parallel >- // with many other WPT tests. >- var x = new XMLHttpRequest(); >- x.onload = overall_test.step_func(function() { >- var response_split = x.response.split("&"); >- overall_test.done(); >- for (var i = 0; i < NUM_TESTS; i++) { >- tests[i].step(function() { >- assert_equals(response_split[i], "a" + i + "="+encode(i)); >- tests[i].done(); >- }); >- } >- }); >- x.onerror = overall_test.unreached_func(); >- >- x.open("POST", "resources/content.py"); >- var usp = new URLSearchParams(); >- for (var i = 0; i < NUM_TESTS; i++) { >- usp.append("a" + i, String.fromCharCode(i)); >- } >- x.send(usp) >-}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 189581
: 349650 |
349672