blob: d80d633e4de30b79191b7033764d32e2f3aa65cf [file] [log] [blame]
<!DOCTYPE html>
<title>WindowEventHandlers test</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../html/resources/event-handlers.js"></script>
<script>
// attribute list from WHATWG HTML Living Standard r8389
[
"onafterprint",
"onbeforeprint",
"onbeforeunload",
"onhashchange",
"onmessage",
"onoffline",
"ononline",
"onpagehide",
"onpageshow",
"onpopstate",
"onstorage",
"onunload"
].forEach(function(attribute) {
testSet("Window", attribute);
testEnumerate("Window", attribute);
testSet("HTMLBodyElement", attribute);
testEnumerate("HTMLBodyElement", attribute);
testReflect("HTMLBodyElement", attribute);
testForwardToWindow("HTMLBodyElement", attribute);
testSet("HTMLFrameSetElement", attribute);
testEnumerate("HTMLFrameSetElement", attribute);
testReflect("HTMLFrameSetElement", attribute);
testForwardToWindow("HTMLFrameSetElement", attribute);
});
</script>
<div id="log"></div>