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