1Connecting to a server that doesn't respond. 2Run this from a local file to avoid cross-origin code path. 3 4<script> 5var req = new XMLHttpRequest; 6req.open("GET", "http://127.0.0.1:7", true); 7req.send(); 8req.onerror = function() { document.write("onerror<br>"); } 9alert("PASSED if no crash or assertion failure"); 10</script> 11