chromium/third_party/blink/web_tests/fast/dom/window-event-handlers.html

<!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>