[Webkit-unassigned] [Bug 32144] Add test for WebSocket.url attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 4 00:02:07 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32144





--- Comment #3 from Darin Fisher (:fishd, Google) <fishd at chromium.org>  2009-12-04 00:02:06 PST ---
(From update of attachment 44293)
> +++ b/LayoutTests/fast/websockets/script-tests/websocket-url.js
> @@ -0,0 +1,21 @@
> +description("Make sure WebSocket URL attribute is resolved URL.");
> +
> +var ws = new WebSocket("ws://localhost:8000");
> +shouldBe("ws.URL", '"ws://localhost:8000"');
> +
> +ws = new WebSocket("ws://localhost:8000/path?");
> +shouldBe("ws.URL", '"ws://localhost:8000/path?"');
> +
> +ws = new WebSocket("ws://localhost:8000/path?k=v");
> +shouldBe("ws.URL", '"ws://localhost:8000/path?k=v"');
> +
> +ws = new WebSocket("ws://localhost:8000/path#fragment");
> +shouldBe("ws.URL", '"ws://localhost:8000/path#fragment"');
> +
> +ws = new WebSocket("ws://localhost:8000/path/../");
> +shouldBe("ws.URL", '"ws://localhost:8000/"');
> +
> +ws = new WebSocket("ws://localhost:8000/relative/../path");
> +shouldBe("ws.URL", '"ws://localhost:8000/path"');

^^^ are these really the only interesting cases?  there are loads
of other interesting cases for http:// URLs, but perhaps ws:// is
simpler?

-- 
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