5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
10 var req
= new XMLHttpRequest();
11 req
.open("GET", "resources/endlessxml.php");
12 req
.onerror = function () {
13 console
.log("FAIL: Expected 'abort', got 'error'.");
15 req
.onabort = function () {
16 console
.log("PASS: Expected 'abort', got 'abort'.");
20 location
= "resources/navigation-target.html";
24 <p>This test requires TestRunner. To execute it manually, open the console, and navigate to
<a href=
"resources/navigation-target.html">resources/navigation-target.html
</a>. You should see a
"PASS" message in the console.
</p>