mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Throw an InvalidStateError from WebSocket#send when it is called too early.
This commit is contained in:
parent
d91a6f3834
commit
48b94ec02b
6 changed files with 77 additions and 14 deletions
|
@ -1,5 +0,0 @@
|
|||
[Send-before-open.htm]
|
||||
type: testharness
|
||||
[W3C WebSocket API - Send data on a WebSocket before connection is opened - INVALID_STATE_ERR is returned]
|
||||
expected: FAIL
|
||||
|
|
@ -1,3 +1,71 @@
|
|||
[interfaces.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
[WebSocket interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: attribute bufferedAmount]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: attribute extensions]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: attribute protocol]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: attribute onmessage]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: attribute binaryType]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: operation send(DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: operation send(Blob)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: operation send(ArrayBuffer)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: operation send(ArrayBufferView)]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of new WebSocket("ws://foo")]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: new WebSocket("ws://foo") must inherit property "bufferedAmount" with the proper type (6)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: new WebSocket("ws://foo") must inherit property "extensions" with the proper type (10)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: new WebSocket("ws://foo") must inherit property "protocol" with the proper type (11)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: new WebSocket("ws://foo") must inherit property "onmessage" with the proper type (13)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: new WebSocket("ws://foo") must inherit property "binaryType" with the proper type (14)]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: calling send(DOMString) on new WebSocket("ws://foo") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: calling send(Blob) on new WebSocket("ws://foo") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: calling send(ArrayBuffer) on new WebSocket("ws://foo") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket interface: calling send(ArrayBufferView) on new WebSocket("ws://foo") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[CloseEvent interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[CloseEvent interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
[001.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
[WebSockets: send() with no args]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[003.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
|
@ -1,3 +0,0 @@
|
|||
[004.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
Loading…
Add table
Add a link
Reference in a new issue