blob: 5bcc34af73d294db240475ddaea647c657156b6b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="../../js/resources/js-test-style.css">
<script src="../../js/resources/js-test-pre.js"></script>
<body onload="test()">
<div id="console"></div>
<iframe src="resources/frame.html"></iframe>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
function test()
{
var s = document.createElement("script");
s.addEventListener("beforeload", function() {
var s = document.body.removeChild(document.getElementsByTagName("script")[2]);
document.getElementsByTagName("iframe")[0].contentDocument.body.appendChild(s);
testPassed("");
}, false);
s.addEventListener("error", function() {
testFailed("error event should not fire.");
}, false);
s.addEventListener("load", function() {
testFailed("script should not be loaded");
}, false);
s.src = "external.js";
document.body.appendChild(s);
}
</script>
</body>
</html>