blob: 99d40ecf7ca3831a1fcf49b9f1631b7de07f7515 [file] [log] [blame]
<!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>