blob: 35fd47f835375347634d8a5799222b3e68c91673 [file] [log] [blame]
<html>
<head>
<script src="resources/print.js"></script>
</head>
<body>
<p>This page tests the beforeload event on script elements. You should see a PASS message below if everything
works.</p>
<hr>
<div id='console'></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<script onbeforeload="print('PASS', 'green'); return false" src="resources/fail.js"></script>
</body>
</html>