| OLD | NEW |
| 1 <!doctype html> |
| 1 <html> | 2 <html> |
| 2 <body> | 3 <body> |
| 3 <pre id='console'></pre> | 4 <pre id='console'></pre> |
| 4 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 5 function log(message) | 6 function log(message) |
| 6 { | 7 { |
| 7 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); | 8 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); |
| 8 } | 9 } |
| 9 | 10 |
| 10 if (window.testRunner) { | 11 if (window.testRunner) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 xhr.timeout = 1; | 36 xhr.timeout = 1; |
| 36 errorCalled = true; | 37 errorCalled = true; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 xhr.ontimeout = function() { | 40 xhr.ontimeout = function() { |
| 40 error = true; | 41 error = true; |
| 41 log("FAIL: Timeout override reactivated the timer"); | 42 log("FAIL: Timeout override reactivated the timer"); |
| 42 } | 43 } |
| 43 | 44 |
| 44 xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-contr
ol-basic-denied.cgi"); | 45 xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-contr
ol-basic-denied.cgi"); |
| 45 xhr.timeout = 100; | 46 xhr.timeout = 180; |
| 46 xhr.send(); | 47 xhr.send(); |
| 47 | 48 |
| 48 setTimeout(performAssertions, 200); | 49 setTimeout(performAssertions, 200); |
| 49 })(); | 50 })(); |
| 50 </script> | 51 </script> |
| 51 </body> | 52 </body> |
| 52 </html> | 53 </html> |
| OLD | NEW |