Files
servo/tests/wpt/web-platform-tests/websockets/interfaces/CloseEvent/historical.html

19 lines
538 B
HTML

<!doctype html>
<meta charset=utf-8>
<title>CloseEvent: historical initialization</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
assert_throws("NotSupportedError", function() {
document.createEvent("CloseEvent")
});
}, "createEvent(\"CloseEvent\")");
test(function() {
assert_false("initCloseEvent" in CloseEvent.prototype);
assert_false("initCloseEvent" in new CloseEvent('close'));
}, "initCloseEvent");
</script>