Return the parsed URL from WebSocket#url.

This commit is contained in:
Ms2ger 2015-07-13 14:21:18 +02:00
parent c3fc943c66
commit 4c0c60a4d6
3 changed files with 32 additions and 11 deletions

View file

@ -0,0 +1,12 @@
<!doctype html>
<title>WebSocket#url: resolving</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../../../constants.js?pipe=sub></script>
<div id=log></div>
<script>
test(function() {
var ws = new WebSocket(SCHEME_DOMAIN_PORT + '/echo?foo%20bar baz');
assert_equals(ws.url, SCHEME_DOMAIN_PORT + '/echo?foo%20bar%20baz');
});
</script>