Auto merge of #9757 - jdm:websocket-errors-rebase, r=jdm

Trigger WebSocket error event

Trigger a WebSocket error after receiving an invalid message from the server. Rebased from #8868. Fixes #7861.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9757)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-02-26 14:14:06 +05:30
commit 26b40afe23
9 changed files with 23 additions and 46 deletions

View file

@ -1,6 +1,5 @@
[010.html]
type: testharness
expected: TIMEOUT
[WebSockets: protocol in response but no requested protocol]
expected: TIMEOUT
expected: FAIL

View file

@ -1,6 +0,0 @@
[011.html]
type: testharness
expected: TIMEOUT
[WebSockets: protocol mismatch]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[005.html]
type: testharness
[WebSockets: setting HttpOnly cookies in ws response, checking ws request]
expected: FAIL

View file

@ -1,6 +0,0 @@
[015.html]
type: testharness
expected: TIMEOUT
[WebSockets: instanceof on events]
expected: TIMEOUT

View file

@ -1,6 +0,0 @@
[017.html]
type: testharness
expected: TIMEOUT
[WebSockets: this, e.target, e.currentTarget, e.eventPhase]
expected: TIMEOUT

View file

@ -1,9 +0,0 @@
[018.html]
type: testharness
expected: TIMEOUT
[error event]
expected: TIMEOUT
[close event]
expected: TIMEOUT

View file

@ -1,6 +1,5 @@
[005.html]
type: testharness
expected: TIMEOUT
[WebSockets: proper first line]
expected: TIMEOUT
expected: FAIL