1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-16 13:28:45 +00:00
Files
UXP/testing/web-platform/tests/websockets/Close-clamp.htm
T

15 lines
415 B
HTML

<!DOCTYPE html>
<title>WebSocket#close(2**16+1000)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="websocket.sub.js"></script>
<div id="log"></div>
<script>
test(function() {
var ws = CreateWebSocket(false, false, false);
assert_throws("InvalidAccessError", function () {
ws.close(0x10000 + 1000);
});
});
</script>