mirror of
https://github.com/servo/servo
synced 2026-05-02 20:32:02 +02:00
19 lines
538 B
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>
|