blob: 3b7b9e9f30aa90402a6208d47976b4800984881f [file] [log] [blame]
<!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>