Skip to content

Commit

Permalink
Enable cors and redirect fetch tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Nov 8, 2016
1 parent eb2484f commit 6589f61
Show file tree
Hide file tree
Showing 43 changed files with 99 additions and 51 deletions.
6 changes: 0 additions & 6 deletions tests/wpt/include.ini
Expand Up @@ -19,12 +19,6 @@ skip: true
skip: false
[fetch]
skip: false
[api]
skip: false
[cors]
skip: true
[redirect]
skip: true
[FileAPI]
skip: false
[hr-time]
Expand Down
Expand Up @@ -8,3 +8,4 @@

[Element in HTML namespace, prefix, non-ascii characters in name]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Shouldn't be able to set unsigned properties on a HTMLCollection (strict mode)]
expected: FAIL
Expand Up @@ -2,3 +2,4 @@
type: testharness
[Shouldn't be able to set unsigned properties on a HTMLCollection (strict mode)]
expected: FAIL
@@ -1,5 +1,10 @@
[cors-cookies-worker.html]
type: testharness
[Include mode: 1 cookie]
[Include mode: local cookies are not sent with remote request]
expected: FAIL

[Include mode: remote cookies are not sent with local request]
expected: FAIL

[Same-origin mode: cookies are discarded in cors request]
expected: FAIL
7 changes: 6 additions & 1 deletion tests/wpt/metadata/fetch/api/cors/cors-cookies.html.ini
@@ -1,5 +1,10 @@
[cors-cookies.html]
type: testharness
[Include mode: 1 cookie]
[Include mode: local cookies are not sent with remote request]
expected: FAIL

[Include mode: remote cookies are not sent with local request]
expected: FAIL

[Same-origin mode: cookies are discarded in cors request]
expected: FAIL
@@ -1,4 +1,5 @@
[cors-redirect-credentials-worker.html]
disabled: https://github.com/servo/servo/issues/13441
type: testharness
[Redirect 301 from remote to same remote with user and password]
expected: FAIL
Expand Down
@@ -1,4 +1,5 @@
[cors-redirect-credentials.html]
disabled: https://github.com/servo/servo/issues/13441
type: testharness
[Redirect 301 from remote to same remote with user and password]
expected: FAIL
Expand Down
@@ -1,4 +1,5 @@
[cors-redirect-preflight-worker.html]
disabled: https://github.com/servo/servo/issues/13441
type: testharness
[Redirect 301: same origin to cors (preflight after redirection success case)]
expected: FAIL
Expand Down
@@ -1,4 +1,5 @@
[cors-redirect-preflight.html]
disabled: https://github.com/servo/servo/issues/13441
type: testharness
[Redirect 301: same origin to cors (preflight after redirection success case)]
expected: FAIL
Expand Down
@@ -1,6 +1,6 @@
[redirect-location-worker.html]
disabled: https://github.com/servo/servo/issues/13441
type: testharness
expected: TIMEOUT
[Redirect 301 in "manual" mode with invalid location]
expected: FAIL

Expand All @@ -19,33 +19,30 @@
[Redirect 303 in "manual" mode with data location]
expected: FAIL

[Redirect 307 in "follow" mode with invalid location]
expected: TIMEOUT

[Redirect 307 in "manual" mode with invalid location]
expected: NOTRUN
expected: FAIL

[Redirect 307 in "follow" mode with data location]
expected: NOTRUN
expected: FAIL

[Redirect 307 in "manual" mode with data location]
expected: NOTRUN

[Redirect 308 in "follow" mode without location]
expected: NOTRUN

[Redirect 308 in "manual" mode without location]
expected: NOTRUN

[Redirect 308 in "follow" mode with invalid location]
expected: NOTRUN
expected: FAIL

[Redirect 308 in "manual" mode with invalid location]
expected: NOTRUN
expected: FAIL

[Redirect 308 in "follow" mode with data location]
expected: NOTRUN
expected: FAIL

[Redirect 308 in "manual" mode with data location]
expected: NOTRUN
expected: FAIL

[Redirect 301 in "follow" mode with data location]
expected: FAIL

[Redirect 302 in "follow" mode with data location]
expected: FAIL

[Redirect 303 in "follow" mode with data location]
expected: FAIL

35 changes: 16 additions & 19 deletions tests/wpt/metadata/fetch/api/redirect/redirect-location.html.ini
@@ -1,6 +1,6 @@
[redirect-location.html]
disabled: https://github.com/servo/servo/issues/13441
type: testharness
expected: TIMEOUT
[Redirect 301 in "manual" mode with invalid location]
expected: FAIL

Expand All @@ -19,33 +19,30 @@
[Redirect 303 in "manual" mode with data location]
expected: FAIL

[Redirect 307 in "follow" mode with invalid location]
expected: TIMEOUT

[Redirect 307 in "manual" mode with invalid location]
expected: NOTRUN
expected: FAIL

[Redirect 307 in "follow" mode with data location]
expected: NOTRUN
expected: FAIL

[Redirect 307 in "manual" mode with data location]
expected: NOTRUN

[Redirect 308 in "follow" mode without location]
expected: NOTRUN

[Redirect 308 in "manual" mode without location]
expected: NOTRUN

[Redirect 308 in "follow" mode with invalid location]
expected: NOTRUN
expected: FAIL

[Redirect 308 in "manual" mode with invalid location]
expected: NOTRUN
expected: FAIL

[Redirect 308 in "follow" mode with data location]
expected: NOTRUN
expected: FAIL

[Redirect 308 in "manual" mode with data location]
expected: NOTRUN
expected: FAIL

[Redirect 301 in "follow" mode with data location]
expected: FAIL

[Redirect 302 in "follow" mode with data location]
expected: FAIL

[Redirect 303 in "follow" mode with data location]
expected: FAIL

Expand Up @@ -3,3 +3,6 @@
[Fetch: handling different schemes in redirects 3]
expected: FAIL

[Fetch: handling different schemes in redirects 1]
expected: FAIL

Expand Up @@ -6,3 +6,12 @@
[Testing data URL loading after cross-origin redirection (no-cors mode)]
expected: FAIL

[Testing data URL loading after same-origin redirection (cors mode)]
expected: FAIL

[Testing data URL loading after same-origin redirection (same-origin mode)]
expected: FAIL

[Testing data URL loading after cross-origin redirection (cors mode)]
expected: FAIL

Expand Up @@ -6,3 +6,12 @@
[Testing data URL loading after cross-origin redirection (no-cors mode)]
expected: FAIL

[Testing data URL loading after same-origin redirection (cors mode)]
expected: FAIL

[Testing data URL loading after same-origin redirection (same-origin mode)]
expected: FAIL

[Testing data URL loading after cross-origin redirection (cors mode)]
expected: FAIL

@@ -1,6 +1,6 @@
[uninitialized-test.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13710

[WebGL test #1: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -1,7 +1,6 @@
[renderbuffer-initialization.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13710

[WebGL test #0: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

Expand All @@ -10,3 +9,4 @@

[WebGL test #2: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

Expand Up @@ -11,3 +11,4 @@

[The PageTransitionEvent interface object should not be exposed.]
expected: FAIL

2 changes: 1 addition & 1 deletion tests/wpt/mozilla/meta/css/matchMedia.html.ini
@@ -1,7 +1,6 @@
[matchMedia.html]
type: testharness
expected: OK

[window.matchMedia exists]
expected: FAIL

Expand All @@ -13,3 +12,4 @@

[Resize iframe from 200x100 to 200x50, then to 100x50]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getCharacteristic. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range with UUID. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getCharacteristics. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getCharacteristics. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getDescriptor. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getDescriptors. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getDescriptors. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getPrimaryService. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getPrimaryServices. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[disconnect() called during getPrimaryServices. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL

This file was deleted.

0 comments on commit 6589f61

Please sign in to comment.