<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> |