| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) { | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | |
| 8 } | |
| 9 | 7 |
| 10 var req = new XMLHttpRequest(); | 8 var req = new XMLHttpRequest(); |
| 11 req.open("GET", "resources/endlessxml.php"); | 9 req.open("GET", "resources/endlessxml.php"); |
| 12 req.onerror = function () { | 10 req.onerror = function () { |
| 13 console.log("FAIL: Expected 'abort', got 'error'."); | 11 console.log("FAIL: Expected 'abort', got 'error'."); |
| 14 }; | 12 }; |
| 15 req.onabort = function () { | 13 req.onabort = function () { |
| 16 console.log("PASS: Expected 'abort', got 'abort'."); | 14 console.log("PASS: Expected 'abort', got 'abort'."); |
| 17 }; | 15 }; |
| 18 req.send(null); | 16 req.send(null); |
| 19 | 17 |
| 20 location = "resources/navigation-target.html"; | 18 if (window.testRunner) |
| 19 testRunner.queueLoad("resources/navigation-target.html"); |
| 21 </script> | 20 </script> |
| 22 </head> | 21 </head> |
| 23 <body> | 22 <body> |
| 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> | 23 <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> |
| 25 </body> | 24 </body> |
| 26 </html> | 25 </html> |
| OLD | NEW |