https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 52e60f154fdfdef290e477f9f95a0e683dfd9971 authored by Aryeh Gregor on 21 August 2016, 14:20:48 UTC
Update for whatwg/html#1693
Tip revision: 52e60f1
Close-clamp.htm
<!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>
back to top