Re: Call for Test Results for Web Sockets 9-Sep-2012 CR

On 03/10/2013 05:48 PM, Arthur Barstow wrote:
> <http://w3c-test.org/webapps/WebSockets/tests/approved/binaryType-wrong-value.htm>
>
>
> TC#1; Fail; "W3C WebSocket API - Create WebSocket - set binaryType to
> something other than blob or arraybuffer - SYNTAX_ERR is returned -
> Connection should be opened" ; "assert_throws: function "function () {
> wsocket.binaryType = "notBlobOrArrayBuffer" }" did not throw"

This test is incorrect: WebSocket.binaryType is an enum type, and these 
don't throw when you set them to an invalid value: 
<http://dev.w3.org/2006/webapi/WebIDL/#dfn-attribute-setter>, step 4.

> TC#2 Not Run; "W3C WebSocket API - Create WebSocket - set binaryType to
> something other than blob or arraybuffer - SYNTAX_ERR is returned -
> Connection should be closed" ; ""

This is probably a side-effect of the failure in the first test.

HTH
Ms2ger

Received on Sunday, 10 March 2013 17:24:00 UTC