blob: 3a88c1e4087183e20edc6311a49395dac7fd6e66 [file] [log] [blame]
<body>
<p>This test passes if the script does not load.</p>
<pre></pre>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function done(msg) {
document.querySelector("pre").innerHTML = msg;
if (window.testRunner)
testRunner.notifyDone();
}
var script = document.createElement("script");
script.crossOrigin = "";
script.src = "http://localhost:8080/security/resources/alert-fail.js";
script.onload = function() { done("FAIL"); }
script.onerror = function() { done("PASS");}
document.body.appendChild(script);
</script>