mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Enable cors/ directory for WPT.
This commit is contained in:
parent
c1cb9403a7
commit
c7752bab63
10 changed files with 264 additions and 76 deletions
|
@ -30,7 +30,7 @@ skip: true
|
|||
[script_scheduling]
|
||||
skip: false
|
||||
[cors]
|
||||
skip: true
|
||||
skip: false
|
||||
[webgl]
|
||||
skip: false
|
||||
[webstorage]
|
||||
|
|
|
@ -21,3 +21,18 @@
|
|||
[Allow origin: [tab\]undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _http://web-platform.test:8000___[tab\]_]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://web-platform.test:8000/]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -3,3 +3,15 @@
|
|||
[Cross domain basic usage]
|
||||
expected: FAIL
|
||||
|
||||
[Same domain different port]
|
||||
expected: FAIL
|
||||
|
||||
[Cross domain different port]
|
||||
expected: FAIL
|
||||
|
||||
[Cross domain different protocol]
|
||||
expected: FAIL
|
||||
|
||||
[Same domain different protocol different port]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
[credentials-flag.htm]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Don't send cookie by default]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Don't send cookie part 2]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Don't obey Set-Cookie when withCredentials=false]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -21,3 +21,24 @@
|
|||
[Allow origin: [tab\]undefined//undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _http://web-platform.test:8000___[tab\]_]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://web-platform.test:8000/]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow multiple headers (, *)]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow multiple headers (*, )]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -54,3 +54,57 @@
|
|||
[remote (undefined//undefined) to remote2 (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[local (*) to remote (*), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[local (*) to remote (http://web-platform.test:8000), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[local (*) to remote (null), expect to fail]
|
||||
expected: FAIL
|
||||
|
||||
[local (*) to remote (none), expect to fail]
|
||||
expected: FAIL
|
||||
|
||||
[local (http://web-platform.test:8000) to remote (*), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[local (http://web-platform.test:8000) to remote (http://web-platform.test:8000), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[local (http://web-platform.test:8000) to remote (null), expect to fail]
|
||||
expected: FAIL
|
||||
|
||||
[local (http://web-platform.test:8000) to remote (none), expect to fail]
|
||||
expected: FAIL
|
||||
|
||||
[local (null) to remote (*), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[local (none) to remote (*), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[remote (http://web-platform.test:8000) to local (*), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (http://web-platform.test:8000) to local (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to remote (*), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[remote (*) to remote (http://web-platform.test:8000), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[remote (http://web-platform.test:8000) to remote (*), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[remote (http://web-platform.test:8000) to remote (http://web-platform.test:8000), expect origin=http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[remote (http://web-platform.test:8000) to remote2 (*), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
[remote (http://web-platform.test:8000) to remote2 (null), expect origin=null]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -3,3 +3,6 @@
|
|||
[Same-origin custom-header request, redirect to cross-origin succeeds after doing a preflight]
|
||||
expected: FAIL
|
||||
|
||||
[Same-origin custom-header request, redirect to cross-origin fails after doing a non-successful preflight]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +1,137 @@
|
|||
[remote-origin.htm]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
[Allow origin: *]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _*__]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]*]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: _http://www1.web-platform.test:8000___[tab\]_]
|
||||
expected: FAIL
|
||||
|
||||
[Allow origin: [tab\]http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: //www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: ://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: ftp://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http:://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http:/www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http:www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000?]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000/]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000_/]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000#]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000%23]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000:80]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000,_*]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000\\0]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: HTTP://WWW1.WEB-PLATFORM.TEST:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: HTTP://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://WWW1.WEB-PLATFORM.TEST:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: -]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: **]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: \\0*]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: *\\0]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: '*']
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: "*"]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: *_*]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: *http://*]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: *http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: *_http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: *,_http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: \\0http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: null_http://www1.web-platform.test:8000]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://example.net]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: null]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: ]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://web-platform.test:8000/cors/remote-origin.htm]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://web-platform.test:8000/cors/]
|
||||
expected: FAIL
|
||||
|
||||
[Disallow origin: http://www1.web-platform.test:8000/cors/]
|
||||
expected: FAIL
|
||||
|
||||
|
|
14
tests/wpt/metadata/cors/response-headers.htm.ini
Normal file
14
tests/wpt/metadata/cors/response-headers.htm.ini
Normal file
|
@ -0,0 +1,14 @@
|
|||
[response-headers.htm]
|
||||
type: testharness
|
||||
[getResponseHeader: Expose Access-Control-Expose-Headers (x-custom-header-comma)]
|
||||
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
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
[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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue