blob: ae57eb12caf3118402e8a328acd2b19381f7324c [file] [log] [blame]
<html>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var img = new Image();
img.onerror = function() {
// cancel resource load within didFail()
window.stop();
document.body.appendChild(document.createTextNode("PASS"));
testRunner.notifyDone();
}
// Port 7 will likely refuse the connection, causing a didFail()
// from the network stack.
img.src = "http://localhost:7";
</script>
</body>
</html>