summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/Close-clamp.htm
blob: 6660e813e2c33124242fcfa4c456330bf8fd47fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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>