OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <body> |
| 3 <p>Test behavior of sync XHR during unload</p> |
| 4 <script> |
| 5 var consoleMessages = document.createElement("ul"); |
| 6 document.body.appendChild(consoleMessages); |
| 7 |
| 8 if (window.testRunner) { |
| 9 testRunner.waitUntilDone(); |
| 10 testRunner.dumpAsText(); |
| 11 } |
| 12 |
| 13 function subframeLoaded() |
| 14 { |
| 15 document.getElementById('ifr').contentWindow.location.assign("data:text/html
,DONE"); |
| 16 } |
| 17 |
| 18 function completed(msg) |
| 19 { |
| 20 log(msg); |
| 21 if (window.testRunner) |
| 22 testRunner.notifyDone(); |
| 23 } |
| 24 |
| 25 function log(message) |
| 26 { |
| 27 var item = document.createElement("li"); |
| 28 item.appendChild(document.createTextNode(message)); |
| 29 consoleMessages.appendChild(item); |
| 30 } |
| 31 </script> |
| 32 <div id="framediv"> |
| 33 <iframe id="ifr" src="resources/xmlhttprequest-in-unload-sync.html"></iframe> |
| 34 </div> |
| 35 </body> |
| 36 </html> |
OLD | NEW |