blob: 8edc58da24554a8ac9a5e6ca5561da27b4bc6c80 [file] [log] [blame]
<body>
This test passes if the image below does not load.
<script>
if (window.testRunner)
testRunner.dumpAsText();
var img = new Image();
img.addEventListener('load', function(event) {
alert('FAIL: The image loaded.');
}, false);
img.addEventListener('error', function(event) {
alert('PASS: The error event was called.');
}, false);
img.crossOrigin = "";
img.src = "http://localhost:8080/security/resources/red200x100.png";
document.body.appendChild(img);
</script>