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