mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08: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,20 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: defineProperty setter for constants</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>
|
||||
var constants = ['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'];
|
||||
for (var i = 0; i < constants.length; ++i) {
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function(){
|
||||
Object.defineProperty(WebSocket.prototype, constants[i], {
|
||||
set: function() { return 'foo'; }
|
||||
});
|
||||
});
|
||||
}, "defineProperty setter " + constants[i])
|
||||
};
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue