W3C home > Mailing lists > Public > public-webapps-testsuite@w3.org > March 2013

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

From: Ms2ger <ms2ger@gmail.com>
Date: Sun, 10 Mar 2013 18:23:30 +0100
Message-ID: <513CC192.8050207@gmail.com>
To: Arthur Barstow <art.barstow@nokia.com>
CC: Ken Reed <kenre@microsoft.com>, "public-webapps-testsuite@w3.org" <public-webapps-testsuite@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 22 April 2014 14:15:59 UTC