aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/meta/xhr
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-06-22 14:35:02 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-06-22 21:15:41 +0200
commitf4578afdfe281db7d065a578782243248640aab5 (patch)
tree48b01257f40e93e07e62413994372ffe5f2d2191 /tests/wpt/meta/xhr
parentcfd24f00bc14551845680713c68ce100404e4f1a (diff)
downloadservo-f4578afdfe281db7d065a578782243248640aab5.tar.gz
servo-f4578afdfe281db7d065a578782243248640aab5.zip
Rename metadata directories
This renames: - `tests/wpt/metadata` → `tests/wpt/meta-legacy-layout` - `tests/wpt/metadata-layout-2020` → `tests/wpt/meta` - `tests/wpt/mozilla/meta` → `tests/wpt/mozilla/meta-legacy-layout` - `tests/wpt/mozilla/meta-layout-2020` → `tests/wpt/mozilla/meta`
Diffstat (limited to 'tests/wpt/meta/xhr')
-rw-r--r--tests/wpt/meta/xhr/access-control-basic-cors-safelisted-response-headers.htm.ini4
-rw-r--r--tests/wpt/meta/xhr/cookies.http.html.ini4
-rw-r--r--tests/wpt/meta/xhr/event-error.sub.any.js.ini8
-rw-r--r--tests/wpt/meta/xhr/formdata/constructor-formelement.html.ini3
-rw-r--r--tests/wpt/meta/xhr/formdata/set-blob.any.js.ini8
-rw-r--r--tests/wpt/meta/xhr/overridemimetype-blob.html.ini219
-rw-r--r--tests/wpt/meta/xhr/response-body-errors.any.js.ini15
-rw-r--r--tests/wpt/meta/xhr/send-data-sharedarraybuffer.any.js.ini80
-rw-r--r--tests/wpt/meta/xhr/send-redirect-to-cors.htm.ini34
-rw-r--r--tests/wpt/meta/xhr/send-timeout-events.htm.ini2
-rw-r--r--tests/wpt/meta/xhr/setrequestheader-header-forbidden.htm.ini3
-rw-r--r--tests/wpt/meta/xhr/status.h2.window.js.ini18
-rw-r--r--tests/wpt/meta/xhr/xhr-authorization-redirect.any.js.ini15
13 files changed, 413 insertions, 0 deletions
diff --git a/tests/wpt/meta/xhr/access-control-basic-cors-safelisted-response-headers.htm.ini b/tests/wpt/meta/xhr/access-control-basic-cors-safelisted-response-headers.htm.ini
new file mode 100644
index 00000000000..97fee88f01f
--- /dev/null
+++ b/tests/wpt/meta/xhr/access-control-basic-cors-safelisted-response-headers.htm.ini
@@ -0,0 +1,4 @@
+[access-control-basic-cors-safelisted-response-headers.htm]
+ [Response with CORS-safelisted headers]
+ expected: FAIL
+
diff --git a/tests/wpt/meta/xhr/cookies.http.html.ini b/tests/wpt/meta/xhr/cookies.http.html.ini
new file mode 100644
index 00000000000..b3ed182ef25
--- /dev/null
+++ b/tests/wpt/meta/xhr/cookies.http.html.ini
@@ -0,0 +1,4 @@
+[cookies.http.html]
+ [Basic non-cross-site cookie handling in XHR]
+ expected: FAIL
+
diff --git a/tests/wpt/meta/xhr/event-error.sub.any.js.ini b/tests/wpt/meta/xhr/event-error.sub.any.js.ini
new file mode 100644
index 00000000000..5375d9954e4
--- /dev/null
+++ b/tests/wpt/meta/xhr/event-error.sub.any.js.ini
@@ -0,0 +1,8 @@
+[event-error.sub.any.worker.html]
+ [error while reading body should report zeros for loaded and total]
+ expected: FAIL
+
+
+[event-error.sub.any.html]
+ [error while reading body should report zeros for loaded and total]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/formdata/constructor-formelement.html.ini b/tests/wpt/meta/xhr/formdata/constructor-formelement.html.ini
new file mode 100644
index 00000000000..0f868616a28
--- /dev/null
+++ b/tests/wpt/meta/xhr/formdata/constructor-formelement.html.ini
@@ -0,0 +1,3 @@
+[constructor-formelement.html]
+ [test that FormData is correctly constructed from the form data set]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/formdata/set-blob.any.js.ini b/tests/wpt/meta/xhr/formdata/set-blob.any.js.ini
new file mode 100644
index 00000000000..aee33830031
--- /dev/null
+++ b/tests/wpt/meta/xhr/formdata/set-blob.any.js.ini
@@ -0,0 +1,8 @@
+[set-blob.any.html]
+ [file with lastModified and custom name]
+ expected: FAIL
+
+
+[set-blob.any.worker.html]
+ [file with lastModified and custom name]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/overridemimetype-blob.html.ini b/tests/wpt/meta/xhr/overridemimetype-blob.html.ini
new file mode 100644
index 00000000000..b3868f239e7
--- /dev/null
+++ b/tests/wpt/meta/xhr/overridemimetype-blob.html.ini
@@ -0,0 +1,219 @@
+[overridemimetype-blob.html]
+ [1) MIME types need to be parsed and serialized: text/html;charset=gbk]
+ expected: FAIL
+
+ [2) MIME types need to be parsed and serialized: TEXT/HTML;CHARSET=GBK]
+ expected: FAIL
+
+ [3) MIME types need to be parsed and serialized: text/html;charset=gbk(]
+ expected: FAIL
+
+ [4) MIME types need to be parsed and serialized: text/html;x=(;charset=gbk]
+ expected: FAIL
+
+ [5) MIME types need to be parsed and serialized: text/html;charset=gbk;charset=windows-1255]
+ expected: FAIL
+
+ [6) MIME types need to be parsed and serialized: text/html;charset=();charset=GBK]
+ expected: FAIL
+
+ [7) MIME types need to be parsed and serialized: text/html;charset =gbk]
+ expected: FAIL
+
+ [8) MIME types need to be parsed and serialized: text/html ;charset=gbk]
+ expected: FAIL
+
+ [9) MIME types need to be parsed and serialized: text/html; charset=gbk]
+ expected: FAIL
+
+ [10) MIME types need to be parsed and serialized: text/html;charset= gbk]
+ expected: FAIL
+
+ [11) MIME types need to be parsed and serialized: text/html;charset= "gbk"]
+ expected: FAIL
+
+ [12) MIME types need to be parsed and serialized: text/html;charset=\x0bgbk]
+ expected: FAIL
+
+ [13) MIME types need to be parsed and serialized: text/html;charset=\x0cgbk]
+ expected: FAIL
+
+ [14) MIME types need to be parsed and serialized: text/html;\x0bcharset=gbk]
+ expected: FAIL
+
+ [15) MIME types need to be parsed and serialized: text/html;\x0ccharset=gbk]
+ expected: FAIL
+
+ [16) MIME types need to be parsed and serialized: text/html;charset='gbk']
+ expected: FAIL
+
+ [17) MIME types need to be parsed and serialized: text/html;charset='gbk]
+ expected: FAIL
+
+ [18) MIME types need to be parsed and serialized: text/html;charset=gbk']
+ expected: FAIL
+
+ [19) MIME types need to be parsed and serialized: text/html;charset=';charset=GBK]
+ expected: FAIL
+
+ [20) MIME types need to be parsed and serialized: text/html;test;charset=gbk]
+ expected: FAIL
+
+ [21) MIME types need to be parsed and serialized: text/html;test=;charset=gbk]
+ expected: FAIL
+
+ [22) MIME types need to be parsed and serialized: text/html;';charset=gbk]
+ expected: FAIL
+
+ [23) MIME types need to be parsed and serialized: text/html;";charset=gbk]
+ expected: FAIL
+
+ [24) MIME types need to be parsed and serialized: text/html ; ; charset=gbk]
+ expected: FAIL
+
+ [25) MIME types need to be parsed and serialized: text/html;;;;charset=gbk]
+ expected: FAIL
+
+ [26) MIME types need to be parsed and serialized: text/html;charset= ";charset=GBK]
+ expected: FAIL
+
+ [27) MIME types need to be parsed and serialized: text/html;charset=";charset=foo";charset=GBK]
+ expected: FAIL
+
+ [28) MIME types need to be parsed and serialized: text/html;charset="gbk"]
+ expected: FAIL
+
+ [29) MIME types need to be parsed and serialized: text/html;charset="gbk]
+ expected: FAIL
+
+ [30) MIME types need to be parsed and serialized: text/html;charset=gbk"]
+ expected: FAIL
+
+ [31) MIME types need to be parsed and serialized: text/html;charset=" gbk"]
+ expected: FAIL
+
+ [32) MIME types need to be parsed and serialized: text/html;charset="gbk "]
+ expected: FAIL
+
+ [33) MIME types need to be parsed and serialized: text/html;charset="\\ gbk"]
+ expected: FAIL
+
+ [34) MIME types need to be parsed and serialized: text/html;charset="\\g\\b\\k"]
+ expected: FAIL
+
+ [35) MIME types need to be parsed and serialized: text/html;charset="gbk"x]
+ expected: FAIL
+
+ [36) MIME types need to be parsed and serialized: text/html;charset="";charset=GBK]
+ expected: FAIL
+
+ [37) MIME types need to be parsed and serialized: text/html;charset=";charset=GBK]
+ expected: FAIL
+
+ [38) MIME types need to be parsed and serialized: text/html;charset={gbk}]
+ expected: FAIL
+
+ [39) MIME types need to be parsed and serialized: text/html;0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789=x;charset=gbk]
+ expected: FAIL
+
+ [41) MIME types need to be parsed and serialized: text/html;a\]=bar;b[=bar;c=bar]
+ expected: FAIL
+
+ [42) MIME types need to be parsed and serialized: text/html;valid=";";foo=bar]
+ expected: FAIL
+
+ [43) MIME types need to be parsed and serialized: text/html;in\]valid=";asd=foo";foo=bar]
+ expected: FAIL
+
+ [44) MIME types need to be parsed and serialized: !#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz;!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
+ expected: FAIL
+
+ [45) MIME types need to be parsed and serialized: x/x;x="\t !\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"]
+ expected: FAIL
+
+ [46) MIME types need to be parsed and serialized: x/x;test]
+ expected: FAIL
+
+ [47) MIME types need to be parsed and serialized: x/x;test="\\]
+ expected: FAIL
+
+ [48) MIME types need to be parsed and serialized: x/x;x= ]
+ expected: FAIL
+
+ [49) MIME types need to be parsed and serialized: x/x;x=\t]
+ expected: FAIL
+
+ [50) MIME types need to be parsed and serialized: x/x\n\r\t ;x=x]
+ expected: FAIL
+
+ [51) MIME types need to be parsed and serialized: \n\r\t x/x;x=x\n\r\t ]
+ expected: FAIL
+
+ [52) MIME types need to be parsed and serialized: x/x;\n\r\t x=x\n\r\t ;x=y]
+ expected: FAIL
+
+ [53) MIME types need to be parsed and serialized: text/html;test=ÿ;charset=gbk]
+ expected: FAIL
+
+ [54) MIME types need to be parsed and serialized: x/x;test=�;x=x]
+ expected: FAIL
+
+ [55) MIME types need to be parsed and serialized: \x0bx/x]
+ expected: FAIL
+
+ [56) MIME types need to be parsed and serialized: \x0cx/x]
+ expected: FAIL
+
+ [57) MIME types need to be parsed and serialized: x/x\x0b]
+ expected: FAIL
+
+ [58) MIME types need to be parsed and serialized: x/x\x0c]
+ expected: FAIL
+
+ [59) MIME types need to be parsed and serialized: ]
+ expected: FAIL
+
+ [60) MIME types need to be parsed and serialized: \t]
+ expected: FAIL
+
+ [61) MIME types need to be parsed and serialized: /]
+ expected: FAIL
+
+ [62) MIME types need to be parsed and serialized: bogus]
+ expected: FAIL
+
+ [63) MIME types need to be parsed and serialized: bogus/]
+ expected: FAIL
+
+ [64) MIME types need to be parsed and serialized: bogus/ ]
+ expected: FAIL
+
+ [65) MIME types need to be parsed and serialized: bogus/bogus/;]
+ expected: FAIL
+
+ [66) MIME types need to be parsed and serialized: </>]
+ expected: FAIL
+
+ [67) MIME types need to be parsed and serialized: (/)]
+ expected: FAIL
+
+ [68) MIME types need to be parsed and serialized: ÿ/ÿ]
+ expected: FAIL
+
+ [69) MIME types need to be parsed and serialized: text/html(;doesnot=matter]
+ expected: FAIL
+
+ [70) MIME types need to be parsed and serialized: {/}]
+ expected: FAIL
+
+ [71) MIME types need to be parsed and serialized: Ā/Ā]
+ expected: FAIL
+
+ [72) MIME types need to be parsed and serialized: text /html]
+ expected: FAIL
+
+ [73) MIME types need to be parsed and serialized: text/ html]
+ expected: FAIL
+
+ [74) MIME types need to be parsed and serialized: "text/html"]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/response-body-errors.any.js.ini b/tests/wpt/meta/xhr/response-body-errors.any.js.ini
new file mode 100644
index 00000000000..88688e7724d
--- /dev/null
+++ b/tests/wpt/meta/xhr/response-body-errors.any.js.ini
@@ -0,0 +1,15 @@
+[response-body-errors.any.html]
+ [Synchronous XMLHttpRequest should throw on bad chunk]
+ expected: FAIL
+
+ [Asynchronous XMLHttpRequest should clear response on bad chunk]
+ expected: FAIL
+
+
+[response-body-errors.any.worker.html]
+ [Synchronous XMLHttpRequest should throw on bad chunk]
+ expected: FAIL
+
+ [Asynchronous XMLHttpRequest should clear response on bad chunk]
+ expected: FAIL
+
diff --git a/tests/wpt/meta/xhr/send-data-sharedarraybuffer.any.js.ini b/tests/wpt/meta/xhr/send-data-sharedarraybuffer.any.js.ini
new file mode 100644
index 00000000000..aea5a244301
--- /dev/null
+++ b/tests/wpt/meta/xhr/send-data-sharedarraybuffer.any.js.ini
@@ -0,0 +1,80 @@
+[send-data-sharedarraybuffer.any.html]
+ [sending a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Int8Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint8Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint8ClampedArray backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Int16Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint16Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Int32Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint32Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a BigInt64Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a BigUint64Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Float32Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Float64Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a DataView backed by a SharedArrayBuffer]
+ expected: FAIL
+
+
+[send-data-sharedarraybuffer.any.worker.html]
+ [sending a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Int8Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint8Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint8ClampedArray backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Int16Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint16Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Int32Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Uint32Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a BigInt64Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a BigUint64Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Float32Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a Float64Array backed by a SharedArrayBuffer]
+ expected: FAIL
+
+ [sending a DataView backed by a SharedArrayBuffer]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/send-redirect-to-cors.htm.ini b/tests/wpt/meta/xhr/send-redirect-to-cors.htm.ini
new file mode 100644
index 00000000000..a97490ae566
--- /dev/null
+++ b/tests/wpt/meta/xhr/send-redirect-to-cors.htm.ini
@@ -0,0 +1,34 @@
+[send-redirect-to-cors.htm]
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (308 FOO with string and explicit Content-Type text/plain)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (302 FOO with string and explicit Content-Type safelisted)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (301 POST with string and explicit Content-Type safelisted)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (307 POST with string and explicit Content-Type safelisted)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (308 FOO with string and explicit Content-Type safelisted)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (307 post with typed array)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (303 FOO with string and explicit Content-Type safelisted)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (307 post with string)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (308 FOO with string and explicit Content-Type multipart/form-data)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (302 POST with string and explicit Content-Type)]
+ expected: FAIL
+
+ [XMLHttpRequest: send() - Redirect to CORS-enabled resource (301 POST with string and explicit Content-Type)]
+ expected: FAIL
+
diff --git a/tests/wpt/meta/xhr/send-timeout-events.htm.ini b/tests/wpt/meta/xhr/send-timeout-events.htm.ini
new file mode 100644
index 00000000000..667372a9597
--- /dev/null
+++ b/tests/wpt/meta/xhr/send-timeout-events.htm.ini
@@ -0,0 +1,2 @@
+[send-timeout-events.htm]
+ expected: TIMEOUT
diff --git a/tests/wpt/meta/xhr/setrequestheader-header-forbidden.htm.ini b/tests/wpt/meta/xhr/setrequestheader-header-forbidden.htm.ini
new file mode 100644
index 00000000000..aa83264e506
--- /dev/null
+++ b/tests/wpt/meta/xhr/setrequestheader-header-forbidden.htm.ini
@@ -0,0 +1,3 @@
+[setrequestheader-header-forbidden.htm]
+ [XMLHttpRequest: setRequestHeader() - headers that are forbidden 1]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/status.h2.window.js.ini b/tests/wpt/meta/xhr/status.h2.window.js.ini
new file mode 100644
index 00000000000..299716aa268
--- /dev/null
+++ b/tests/wpt/meta/xhr/status.h2.window.js.ini
@@ -0,0 +1,18 @@
+[status.h2.window.html]
+ [statusText over H2 for status 200 should be the empty string]
+ expected: FAIL
+
+ [statusText over H2 for status 400 should be the empty string]
+ expected: FAIL
+
+ [statusText over H2 for status 404 should be the empty string]
+ expected: FAIL
+
+ [statusText over H2 for status 410 should be the empty string]
+ expected: FAIL
+
+ [statusText over H2 for status 500 should be the empty string]
+ expected: FAIL
+
+ [statusText over H2 for status 502 should be the empty string]
+ expected: FAIL
diff --git a/tests/wpt/meta/xhr/xhr-authorization-redirect.any.js.ini b/tests/wpt/meta/xhr/xhr-authorization-redirect.any.js.ini
new file mode 100644
index 00000000000..2554e2910bc
--- /dev/null
+++ b/tests/wpt/meta/xhr/xhr-authorization-redirect.any.js.ini
@@ -0,0 +1,15 @@
+[xhr-authorization-redirect.any.sharedworker.html]
+ expected: ERROR
+
+[xhr-authorization-redirect.any.worker.html]
+ [getAuthorizationHeaderValue - cross origin redirection]
+ expected: FAIL
+
+
+[xhr-authorization-redirect.any.html]
+ [getAuthorizationHeaderValue - cross origin redirection]
+ expected: FAIL
+
+
+[xhr-authorization-redirect.any.serviceworker.html]
+ expected: ERROR