Files
palemoon27/testing/web-platform/tests/websockets/interfaces/CloseEvent/historical.html
T

19 lines
531 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());
}, "initCloseEvent");
</script>