Skip to content
Permalink
Browse files

Enable the Fetch API web platform tests

  • Loading branch information...
jeenalee committed Sep 13, 2016
1 parent bb53da6 commit a3f1ff0af06902f830a25556c7ee6b8443f6cf5c
Showing with 373 additions and 9 deletions.
  1. +1 −9 tests/wpt/include.ini
  2. +6 −0 tests/wpt/metadata/fetch/api/basic/accept-header-worker.html.ini
  3. +5 −0 tests/wpt/metadata/fetch/api/basic/accept-header.html.ini
  4. +6 −0 tests/wpt/metadata/fetch/api/basic/integrity-worker.html.ini
  5. +5 −0 tests/wpt/metadata/fetch/api/basic/integrity.html.ini
  6. +6 −0 tests/wpt/metadata/fetch/api/basic/mode-no-cors-worker.html.ini
  7. +5 −0 tests/wpt/metadata/fetch/api/basic/mode-no-cors.html.ini
  8. +6 −0 tests/wpt/metadata/fetch/api/basic/mode-same-origin-worker.html.ini
  9. +5 −0 tests/wpt/metadata/fetch/api/basic/mode-same-origin.html.ini
  10. +6 −0 tests/wpt/metadata/fetch/api/basic/request-forbidden-headers-worker.html.ini
  11. +5 −0 tests/wpt/metadata/fetch/api/basic/request-forbidden-headers.html.ini
  12. +6 −0 tests/wpt/metadata/fetch/api/basic/request-headers-worker.html.ini
  13. +5 −0 tests/wpt/metadata/fetch/api/basic/request-headers.html.ini
  14. +6 −0 tests/wpt/metadata/fetch/api/basic/response-url-worker.html.ini
  15. +5 −0 tests/wpt/metadata/fetch/api/basic/response-url.html.ini
  16. +6 −0 tests/wpt/metadata/fetch/api/basic/scheme-about-worker.html.ini
  17. +5 −0 tests/wpt/metadata/fetch/api/basic/scheme-about.html.ini
  18. +6 −0 tests/wpt/metadata/fetch/api/basic/scheme-blob-worker.html.ini
  19. +5 −0 tests/wpt/metadata/fetch/api/basic/scheme-blob.html.ini
  20. +6 −0 tests/wpt/metadata/fetch/api/basic/scheme-data-worker.html.ini
  21. +5 −0 tests/wpt/metadata/fetch/api/basic/scheme-data.html.ini
  22. +6 −0 tests/wpt/metadata/fetch/api/basic/scheme-others-worker.html.ini
  23. +5 −0 tests/wpt/metadata/fetch/api/basic/scheme-others.html.ini
  24. +6 −0 tests/wpt/metadata/fetch/api/basic/stream-response-worker.html.ini
  25. +5 −0 tests/wpt/metadata/fetch/api/basic/stream-response.html.ini
  26. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-basic-worker.html.ini
  27. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-basic.html.ini
  28. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-cookies-worker.html.ini
  29. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-cookies.html.ini
  30. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-filtering-worker.html.ini
  31. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-filtering.html.ini
  32. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-multiple-origins-worker.html.ini
  33. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-multiple-origins.html.ini
  34. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-no-preflight-worker.html.ini
  35. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-no-preflight.html.ini
  36. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-origin-worker.html.ini
  37. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-origin.html.ini
  38. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-redirect-worker.html.ini
  39. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-redirect.html.ini
  40. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-referrer-worker.html.ini
  41. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-referrer.html.ini
  42. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-status-worker.html.ini
  43. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-status.html.ini
  44. +3 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight-worker.html.ini
  45. +3 −0 tests/wpt/metadata/fetch/api/cors/cors-preflight.html.ini
  46. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-redirect-credentials-worker.html.ini
  47. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-redirect-credentials.html.ini
  48. +6 −0 tests/wpt/metadata/fetch/api/cors/cors-redirect-worker.html.ini
  49. +5 −0 tests/wpt/metadata/fetch/api/cors/cors-redirect.html.ini
  50. +6 −0 tests/wpt/metadata/fetch/api/credentials/authentication-basic-worker.html.ini
  51. +5 −0 tests/wpt/metadata/fetch/api/credentials/authentication-basic.html.ini
  52. +6 −0 tests/wpt/metadata/fetch/api/credentials/cookies-worker.html.ini
  53. +5 −0 tests/wpt/metadata/fetch/api/credentials/cookies.html.ini
  54. +6 −0 tests/wpt/metadata/fetch/api/policies/csp-blocked-worker.html.ini
  55. +5 −0 tests/wpt/metadata/fetch/api/policies/csp-blocked.html.ini
  56. +6 −0 tests/wpt/metadata/fetch/api/policies/referrer-no-referrer-worker.html.ini
  57. +5 −0 tests/wpt/metadata/fetch/api/policies/referrer-no-referrer.html.ini
  58. +6 −0 tests/wpt/metadata/fetch/api/policies/referrer-origin-worker.html.ini
  59. +5 −0 tests/wpt/metadata/fetch/api/policies/referrer-origin.html.ini
  60. +6 −0 tests/wpt/metadata/fetch/api/policies/referrer-unsafe-url-worker.html.ini
  61. +5 −0 tests/wpt/metadata/fetch/api/policies/referrer-unsafe-url.html.ini
  62. +6 −0 tests/wpt/metadata/fetch/api/redirect/redirect-count-worker.html.ini
  63. +5 −0 tests/wpt/metadata/fetch/api/redirect/redirect-count.html.ini
  64. +6 −0 tests/wpt/metadata/fetch/api/redirect/redirect-location-worker.html.ini
  65. +5 −0 tests/wpt/metadata/fetch/api/redirect/redirect-location.html.ini
  66. +6 −0 tests/wpt/metadata/fetch/api/redirect/redirect-method-worker.html.ini
  67. +5 −0 tests/wpt/metadata/fetch/api/redirect/redirect-method.html.ini
  68. +6 −0 tests/wpt/metadata/fetch/api/redirect/redirect-mode-worker.html.ini
  69. +5 −0 tests/wpt/metadata/fetch/api/redirect/redirect-mode.html.ini
  70. +3 −0 tests/wpt/metadata/fetch/api/redirect/redirect-schemes.html.ini
@@ -18,15 +18,7 @@ skip: true
[eventsource]
skip: false
[fetch]
skip: true
[api]
skip: true
[headers]
skip: false
[request]
skip: false
[response]
skip: false
skip: false
[FileAPI]
skip: false
[hr-time]
@@ -0,0 +1,6 @@
[accept-header-worker.html]
type: testharness
expected: TIMEOUT
[Request through fetch should have 'accept' header with value '*/*']
expected: FAIL

@@ -0,0 +1,5 @@
[accept-header.html]
type: testharness
[Request through fetch should have 'accept' header with value '*/*']
expected: FAIL

@@ -0,0 +1,6 @@
[integrity-worker.html]
type: testharness
expected: TIMEOUT
[Empty string integrity]
expected: FAIL

@@ -0,0 +1,5 @@
[integrity.html]
type: testharness
[Empty string integrity]
expected: FAIL

@@ -0,0 +1,6 @@
[mode-no-cors-worker.html]
type: testharness
expected: TIMEOUT
[Fetch ../resources/top.txt with no-cors mode]
expected: FAIL

@@ -0,0 +1,5 @@
[mode-no-cors.html]
type: testharness
[Fetch ../resources/top.txt with no-cors mode]
expected: FAIL

@@ -0,0 +1,6 @@
[mode-same-origin-worker.html]
type: testharness
expected: TIMEOUT
[Fetch ../resources/top.txt with same-origin mode]
expected: FAIL

@@ -0,0 +1,5 @@
[mode-same-origin.html]
type: testharness
[Fetch ../resources/top.txt with same-origin mode]
expected: FAIL

@@ -0,0 +1,6 @@
[request-forbidden-headers-worker.html]
type: testharness
expected: TIMEOUT
[Accept-Charset is a forbidden request header]
expected: FAIL

@@ -0,0 +1,5 @@
[request-forbidden-headers.html]
type: testharness
[Accept-Charset is a forbidden request header]
expected: FAIL

@@ -0,0 +1,6 @@
[request-headers-worker.html]
type: testharness
expected: TIMEOUT
[Fetch with GET]
expected: FAIL

@@ -0,0 +1,5 @@
[request-headers.html]
type: testharness
[Fetch with GET]
expected: FAIL

@@ -0,0 +1,6 @@
[response-url-worker.html]
type: testharness
expected: TIMEOUT
[Testing response url getter with http://web-platform.test:8000/ada]
expected: FAIL

@@ -0,0 +1,5 @@
[response-url.html]
type: testharness
[Testing response url getter with http://web-platform.test:8000/ada]
expected: FAIL

@@ -0,0 +1,6 @@
[scheme-about-worker.html]
type: testharness
expected: TIMEOUT
[Fetching about:blank is OK]
expected: FAIL

@@ -0,0 +1,5 @@
[scheme-about.html]
type: testharness
[Fetching about:blank is OK]
expected: FAIL

@@ -0,0 +1,6 @@
[scheme-blob-worker.html]
type: testharness
expected: TIMEOUT
[Fetching [GET\] URL.createObjectURL(blob) is OK]
expected: FAIL

@@ -0,0 +1,5 @@
[scheme-blob.html]
type: testharness
[Fetching [GET\] URL.createObjectURL(blob) is OK]
expected: FAIL

@@ -0,0 +1,6 @@
[scheme-data-worker.html]
type: testharness
expected: TIMEOUT
[Fetching data:,response%27s%20body is OK]
expected: FAIL

@@ -0,0 +1,5 @@
[scheme-data.html]
type: testharness
[Fetching data:,response%27s%20body is OK]
expected: FAIL

@@ -0,0 +1,6 @@
[scheme-others-worker.html]
type: testharness
expected: TIMEOUT
[Fetching aaa://web-platform.test:8000/ is KO]
expected: FAIL

@@ -0,0 +1,5 @@
[scheme-others.html]
type: testharness
[Fetching aaa://web-platform.test:8000/ is KO]
expected: FAIL

@@ -0,0 +1,6 @@
[stream-response-worker.html]
type: testharness
expected: TIMEOUT
[Stream response's body]
expected: FAIL
@@ -0,0 +1,5 @@
[stream-response.html]
type: testharness
[Stream response's body]
expected: FAIL
@@ -0,0 +1,6 @@
[cors-basic-worker.html]
type: testharness
expected: TIMEOUT
[Same domain different port [no-cors mode\]]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-basic.html]
type: testharness
[Same domain different port [no-cors mode\]]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-cookies-worker.html]
type: testharness
expected: TIMEOUT
[Omit mode: no cookie sent]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-cookies.html]
type: testharness
[Omit mode: no cookie sent]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-filtering-worker.html]
type: testharness
expected: TIMEOUT
[CORS filter on Cache-Control header]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-filtering.html]
type: testharness
[CORS filter on Cache-Control header]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-multiple-origins-worker.html]
type: testharness
expected: TIMEOUT
[3 origins allowed, match the 3rd (http://web-platform.test:8000)]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-multiple-origins.html]
type: testharness
[3 origins allowed, match the 3rd (http://web-platform.test:8000)]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-no-preflight-worker.html]
type: testharness
expected: TIMEOUT
[Cross domain basic usage [GET\]]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-no-preflight.html]
type: testharness
[Cross domain basic usage [GET\]]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-origin-worker.html]
type: testharness
expected: TIMEOUT
[Cross domain different subdomain [origin OK\]]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-origin.html]
type: testharness
[Cross domain different subdomain [origin OK\]]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-preflight-redirect-worker.html]
type: testharness
expected: TIMEOUT
[Redirection 301 on preflight failed]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-preflight-redirect.html]
type: testharness
[Redirection 301 on preflight failed]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-preflight-referrer-worker.html]
type: testharness
expected: TIMEOUT
[Referrer policy: no-referrer]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-preflight-referrer.html]
type: testharness
[Referrer policy: no-referrer]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-preflight-status-worker.html]
type: testharness
expected: TIMEOUT
[Preflight answered with status 200]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-preflight-status.html]
type: testharness
[Preflight answered with status 200]
expected: FAIL

@@ -0,0 +1,3 @@
[cors-preflight-worker.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,3 @@
[cors-preflight.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,6 @@
[cors-redirect-credentials-worker.html]
type: testharness
expected: TIMEOUT
[Redirect 301 from same origin to remote with user and password]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-redirect-credentials.html]
type: testharness
[Redirect 301 from same origin to remote with user and password]
expected: FAIL

@@ -0,0 +1,6 @@
[cors-redirect-worker.html]
type: testharness
expected: TIMEOUT
[Redirect 301: cors to same cors]
expected: FAIL

@@ -0,0 +1,5 @@
[cors-redirect.html]
type: testharness
[Redirect 301: cors to same cors]
expected: FAIL

@@ -0,0 +1,6 @@
[authentication-basic-worker.html]
type: testharness
expected: TIMEOUT
[User-added Authorization header with include mode]
expected: FAIL

@@ -0,0 +1,5 @@
[authentication-basic.html]
type: testharness
[User-added Authorization header with include mode]
expected: FAIL

@@ -0,0 +1,6 @@
[cookies-worker.html]
type: testharness
expected: TIMEOUT
[Include mode: 1 cookie]
expected: FAIL

@@ -0,0 +1,5 @@
[cookies.html]
type: testharness
[Include mode: 1 cookie]
expected: FAIL

@@ -0,0 +1,6 @@
[csp-blocked-worker.html]
type: testharness
expected: TIMEOUT
[Fetch is blocked by CSP, got a TypeError]
expected: FAIL

@@ -0,0 +1,5 @@
[csp-blocked.html]
type: testharness
[Fetch is blocked by CSP, got a TypeError]
expected: FAIL

@@ -0,0 +1,6 @@
[referrer-no-referrer-worker.html]
type: testharness
expected: TIMEOUT
[Request's referrer is empty]
expected: FAIL

@@ -0,0 +1,5 @@
[referrer-no-referrer.html]
type: testharness
[Request's referrer is empty]
expected: FAIL

@@ -0,0 +1,6 @@
[referrer-origin-worker.html]
type: testharness
expected: TIMEOUT
[Request's referrer is origin]
expected: FAIL

@@ -0,0 +1,5 @@
[referrer-origin.html]
type: testharness
[Request's referrer is origin]
expected: FAIL

@@ -0,0 +1,6 @@
[referrer-unsafe-url-worker.html]
type: testharness
expected: TIMEOUT
[Request's referrer is the full url of current document/worker]
expected: FAIL

Oops, something went wrong.

0 comments on commit a3f1ff0

Please sign in to comment.
You can’t perform that action at this time.