mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: getting url</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=../../../constants.js?pipe=sub></script>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_equals((new WebSocket(SCHEME_DOMAIN_PORT)).url, SCHEME_DOMAIN_PORT+'/');
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: setting url</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=../../../constants.js?pipe=sub></script>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/');
|
||||
ws.url = SCHEME_DOMAIN_PORT+'/test';
|
||||
assert_equals(ws.url, SCHEME_DOMAIN_PORT+'/');
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: deleting url</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=../../../constants.js?pipe=sub></script>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/');
|
||||
delete ws.url;
|
||||
assert_equals(ws.url, SCHEME_DOMAIN_PORT+'/', 'delete ws.url');
|
||||
delete WebSocket.prototype.url;
|
||||
assert_equals(ws.url, undefined, 'delete WebSocket.prototype.url');
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: 'URL'</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=../../../constants.js?pipe=sub></script>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/');
|
||||
assert_equals(ws.URL, undefined);
|
||||
assert_equals('URL' in ws, false);
|
||||
assert_equals(WebSocket.prototype.URL, undefined);
|
||||
assert_equals('URL' in WebSocket.prototype, false);
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: defineProperty getter for url</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=../../../constants.js?pipe=sub></script>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
Object.defineProperty(WebSocket.prototype, 'url', {
|
||||
get: function() { return 'foo'; }
|
||||
});
|
||||
var ws = new WebSocket('ws://example.invalid/');
|
||||
assert_equals(ws.url, 'foo');
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: defineProperty setter for url</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=../../../constants.js?pipe=sub></script>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
window.setter_ran = false;
|
||||
Object.defineProperty(WebSocket.prototype, 'url', {
|
||||
set: function(v) { window[v] = true; }
|
||||
});
|
||||
var ws = new WebSocket('ws://example.invalid/');
|
||||
ws.url = 'setter_ran';
|
||||
assert_true(setter_ran);
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!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>
|
||||
<meta name="variant" content="">
|
||||
<meta name="variant" content="?wss">
|
||||
<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