mirror of
https://github.com/servo/servo.git
synced 2025-08-25 07:08:21 +01:00
Return the parsed URL from WebSocket#url.
This commit is contained in:
parent
c3fc943c66
commit
4c0c60a4d6
3 changed files with 32 additions and 11 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue