mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
auto merge of #3952 : andrewguertin/servo/wpt-cors, r=Manishearth
Fixes #3781 I had to make a small fix to wptrunner's wptupdate, but otherwise the instructions at https://github.com/servo/servo/blob/master/tests/wpt/README.md#updating-test-expectations were good and this was very straightforward.
This commit is contained in:
commit
e8edbe0240
17 changed files with 396 additions and 0 deletions
|
@ -85,3 +85,5 @@ skip: true
|
|||
skip: true
|
||||
[script_scheduling]
|
||||
skip: false
|
||||
[cors]
|
||||
skip: false
|
||||
|
|
23
tests/wpt/metadata/cors/allow-headers.htm.ini
Normal file
23
tests/wpt/metadata/cors/allow-headers.htm.ini
Normal file
|
@ -0,0 +1,23 @@
|
|||
[allow-headers.htm]
|
||||
type: testharness
|
||||
[Allow origin: *]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _*__]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]*]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _undefined//undefined___[tab\]_]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]undefined//undefined]
|
||||
expected: FAIL
|
||||
|
5
tests/wpt/metadata/cors/basic.htm.ini
Normal file
5
tests/wpt/metadata/cors/basic.htm.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[basic.htm]
|
||||
type: testharness
|
||||
[Cross domain basic usage]
|
||||
expected: FAIL
|
||||
|
3
tests/wpt/metadata/cors/credentials-flag.htm.ini
Normal file
3
tests/wpt/metadata/cors/credentials-flag.htm.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[credentials-flag.htm]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
8
tests/wpt/metadata/cors/late-upload-events.htm.ini
Normal file
8
tests/wpt/metadata/cors/late-upload-events.htm.ini
Normal file
|
@ -0,0 +1,8 @@
|
|||
[late-upload-events.htm]
|
||||
type: testharness
|
||||
[Late listeners: No preflight]
|
||||
expected: FAIL
|
||||
|
||||
[Late listeners: Preflight]
|
||||
expected: FAIL
|
||||
|
23
tests/wpt/metadata/cors/origin.htm.ini
Normal file
23
tests/wpt/metadata/cors/origin.htm.ini
Normal file
|
@ -0,0 +1,23 @@
|
|||
[origin.htm]
|
||||
type: testharness
|
||||
[Allow origin: *]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _*__]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]*]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _undefined//undefined___[tab\]_]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]undefined//undefined]
|
||||
expected: FAIL
|
||||
|
17
tests/wpt/metadata/cors/preflight-cache.htm.ini
Normal file
17
tests/wpt/metadata/cors/preflight-cache.htm.ini
Normal file
|
@ -0,0 +1,17 @@
|
|||
[preflight-cache.htm]
|
||||
type: testharness
|
||||
[Test preflight]
|
||||
expected: FAIL
|
||||
|
||||
[preflight for x-print should be cached]
|
||||
expected: FAIL
|
||||
|
||||
[age = 0, should not be cached]
|
||||
expected: FAIL
|
||||
|
||||
[age = -1, should not be cached]
|
||||
expected: FAIL
|
||||
|
||||
[preflight first request, second from cache, wait, third should preflight again]
|
||||
expected: FAIL
|
||||
|
56
tests/wpt/metadata/cors/redirect-origin.htm.ini
Normal file
56
tests/wpt/metadata/cors/redirect-origin.htm.ini
Normal file
|
@ -0,0 +1,56 @@
|
|||
[redirect-origin.htm]
|
||||
type: testharness
|
||||
[local (*) to remote (*), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[local (*) to remote (undefined//undefined), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[local (undefined//undefined) to remote (*), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[local (undefined//undefined) to remote (undefined//undefined), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[local (null) to remote (*), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[local (none) to remote (*), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to local (*), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to local (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (undefined//undefined) to local (*), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (undefined//undefined) to local (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to remote (*), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to remote (undefined//undefined), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[remote (undefined//undefined) to remote (*), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[remote (undefined//undefined) to remote (undefined//undefined), expect origin=undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to remote2 (*), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to remote2 (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (undefined//undefined) to remote2 (*), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (undefined//undefined) to remote2 (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
5
tests/wpt/metadata/cors/redirect-preflight-2.htm.ini
Normal file
5
tests/wpt/metadata/cors/redirect-preflight-2.htm.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[redirect-preflight-2.htm]
|
||||
type: testharness
|
||||
[Same-origin custom-header request, redirect to cross-origin succeeds after doing a preflight]
|
||||
expected: FAIL
|
||||
|
5
tests/wpt/metadata/cors/redirect-userinfo.htm.ini
Normal file
5
tests/wpt/metadata/cors/redirect-userinfo.htm.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[redirect-userinfo.htm]
|
||||
type: testharness
|
||||
[Allow redirect with userinfo (//@)]
|
||||
expected: FAIL
|
||||
|
3
tests/wpt/metadata/cors/remote-origin.htm.ini
Normal file
3
tests/wpt/metadata/cors/remote-origin.htm.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[remote-origin.htm]
|
||||
type: testharness
|
||||
expected: CRASH
|
14
tests/wpt/metadata/cors/request-headers.htm.ini
Normal file
14
tests/wpt/metadata/cors/request-headers.htm.ini
Normal file
|
@ -0,0 +1,14 @@
|
|||
[request-headers.htm]
|
||||
type: testharness
|
||||
[basic request header]
|
||||
expected: FAIL
|
||||
|
||||
[Simple request headers need not be in allow-headers]
|
||||
expected: FAIL
|
||||
|
||||
[Strange allowheaders (case insensitive)]
|
||||
expected: FAIL
|
||||
|
||||
[INVALID_STATE_ERR on setRequestHeader after send()]
|
||||
expected: FAIL
|
||||
|
47
tests/wpt/metadata/cors/response-headers.htm.ini
Normal file
47
tests/wpt/metadata/cors/response-headers.htm.ini
Normal file
|
@ -0,0 +1,47 @@
|
|||
[response-headers.htm]
|
||||
type: testharness
|
||||
[getResponseHeader: Expose Access-Control-Expose-Headers (x-custom-header-comma)]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Expose second Access-Control-Expose-Headers (x-second-expose)]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Don\'t trim whitespace]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: x-custom-header bytes]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Exposed server field readable (Date)]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Cache-Control: readable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Content-Language: readable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Expires: readable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Last-Modified: readable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Pragma: readable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Server: unreadable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: X-Powered-By: unreadable by default]
|
||||
expected: FAIL
|
||||
|
||||
[getResponseHeader: Combined testing of cors response headers]
|
||||
expected: FAIL
|
||||
|
||||
[getResponse: don\'t expose x-nonexposed]
|
||||
expected: FAIL
|
||||
|
||||
[getAllResponseHeaders: don\'t expose x-nonexposed]
|
||||
expected: FAIL
|
||||
|
74
tests/wpt/metadata/cors/simple-requests.htm.ini
Normal file
74
tests/wpt/metadata/cors/simple-requests.htm.ini
Normal file
|
@ -0,0 +1,74 @@
|
|||
[simple-requests.htm]
|
||||
type: testharness
|
||||
[No preflight GET and {"Accept":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"Accept":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"Accept":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight GET and {"accept-language":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"accept-language":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"accept-language":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight GET and {"CONTENT-language":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"CONTENT-language":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"CONTENT-language":"test"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight GET and {"Content-Type":"application/x-www-form-urlencoded"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"Content-Type":"application/x-www-form-urlencoded"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"Content-Type":"application/x-www-form-urlencoded"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight GET and {"content-type":"multipart/form-data"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"content-type":"multipart/form-data"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"content-type":"multipart/form-data"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight GET and {"content-type":"text/plain"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"content-type":"text/plain"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"content-type":"text/plain"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight GET and {"accept":"test","accept-language":"test","content-language":"test","content-type":"text/plain; parameter=whatever"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight HEAD and {"accept":"test","accept-language":"test","content-language":"test","content-type":"text/plain; parameter=whatever"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight POST and {"accept":"test","accept-language":"test","content-language":"test","content-type":"text/plain; parameter=whatever"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight Get and {"content-type":"text/plain; parameter=extra_bonus"}]
|
||||
expected: FAIL
|
||||
|
||||
[No preflight post and {"content-type":"text/plain"}]
|
||||
expected: FAIL
|
||||
|
||||
[Check simple headers (async)]
|
||||
expected: FAIL
|
||||
|
53
tests/wpt/metadata/cors/status-async.htm.ini
Normal file
53
tests/wpt/metadata/cors/status-async.htm.ini
Normal file
|
@ -0,0 +1,53 @@
|
|||
[status-async.htm]
|
||||
type: testharness
|
||||
[Status on GET 200]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 201]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 202]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 203]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 204]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 205]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 206]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 209]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 299]
|
||||
expected: FAIL
|
||||
|
||||
[Status on POST 200]
|
||||
expected: FAIL
|
||||
|
||||
[Status on HEAD 200]
|
||||
expected: FAIL
|
||||
|
||||
[Status on PUT 200]
|
||||
expected: FAIL
|
||||
|
||||
[Status on CHICKEN 200]
|
||||
expected: FAIL
|
||||
|
||||
[Status on GET 400]
|
||||
expected: FAIL
|
||||
|
||||
[Status on HEAD 401]
|
||||
expected: FAIL
|
||||
|
||||
[Status on POST 404]
|
||||
expected: FAIL
|
||||
|
||||
[Status on POST 500]
|
||||
expected: FAIL
|
||||
|
50
tests/wpt/metadata/cors/status-preflight.htm.ini
Normal file
50
tests/wpt/metadata/cors/status-preflight.htm.ini
Normal file
|
@ -0,0 +1,50 @@
|
|||
[status-preflight.htm]
|
||||
type: testharness
|
||||
[CORS - status after preflight on GET 200]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on GET 204]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on GET 400]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on GET 401]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on HEAD 200]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on HEAD 204]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on HEAD 400]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on HEAD 401]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on HEAD 501]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on HEAD 699]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on POST 204]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on POST 400]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on POST 401]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on POST 404]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on PUT 699]
|
||||
expected: FAIL
|
||||
|
||||
[CORS - status after preflight on CHICKEN 501]
|
||||
expected: FAIL
|
||||
|
8
tests/wpt/metadata/cors/status.htm.ini
Normal file
8
tests/wpt/metadata/cors/status.htm.ini
Normal file
|
@ -0,0 +1,8 @@
|
|||
[status.htm]
|
||||
type: testharness
|
||||
[3. CORS allowed, response status 400.]
|
||||
expected: FAIL
|
||||
|
||||
[4. CORS allowed, preflight status 200, response status 400.]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue