[Webkit-unassigned] [Bug 135874] The setter of binaryType attribute in WebSocket should raise the exception.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 13 22:21:57 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=135874
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #236578|review? |review-
Flag| |
--- Comment #14 from Darin Adler <darin at apple.com> 2014-08-13 22:22:06 PST ---
(From update of attachment 236578)
View in context: https://bugs.webkit.org/attachment.cgi?id=236578&action=review
Code change is OK, test change is not. See comments below.
> LayoutTests/http/tests/websocket/tests/hybi/binary-type.html:12
> +var syntaxErr = "SyntaxError";
This is not needed.
> LayoutTests/http/tests/websocket/tests/hybi/binary-type.html:-21
> -debug("Set invalid values to binaryType. They should be ignored. No exception should be thrown.");
I don’t think this is needed at all. We should just delete it and not add new debug lines.
> LayoutTests/http/tests/websocket/tests/hybi/binary-type.html:-24
> -ws.binaryType = "Blob";
> -shouldBeEqualToString("ws.binaryType", "blob");
The change needed here is much smaller than what's done below. It should just be this.
shouldThrow("ws.binaryType = 'Blob'", "SyntaxError");
shouldBeEqualToString("ws.binaryType", "blob");
But also, binary-type-expected.txt has to be updated too since the expected results are changing.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list