| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| window.addEventListener('message', function () |
| { |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| |
| var req = new XMLHttpRequest(); |
| req.open("GET", "resources/endlessxml.php"); |
| req.onerror = function () { |
| console.log("FAIL: Expected 'abort', got 'error'."); |
| }; |
| req.onabort = function () { |
| console.log("PASS: Expected 'abort', got 'abort'."); |
| parent.finishSoon(); |
| parent.document.body.innerHTML = 'PASS: but only if nothing crashed.'; |
| }; |
| req.send(null); |
| |
| location = "about:blank"; |
| }); |
| </script> |
| </head> |
| <body> |
| </body> |
| </html> |