mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +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
|
@ -26471,7 +26471,16 @@
|
|||
},
|
||||
"local_changes": {
|
||||
"deleted": [],
|
||||
"items": {},
|
||||
"items": {
|
||||
"testharness": {
|
||||
"websockets/interfaces/WebSocket/url/resolve.html": [
|
||||
{
|
||||
"path": "websockets/interfaces/WebSocket/url/resolve.html",
|
||||
"url": "/websockets/interfaces/WebSocket/url/resolve.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reftest_nodes": {}
|
||||
},
|
||||
"reftest_nodes": {
|
||||
|
|
|
@ -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