Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xmlhttprequest-unload-sync.html
blob051f3f41f4dd4d9ade8f4c92d1489579dbe1d642
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);
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.dumpAsText();
13 function subframeLoaded()
15 document.getElementById('ifr').contentWindow.location.assign("data:text/html,DONE");
18 function completed(msg)
20 log(msg);
21 if (window.testRunner)
22 testRunner.notifyDone();
25 function log(message)
27 var item = document.createElement("li");
28 item.appendChild(document.createTextNode(message));
29 consoleMessages.appendChild(item);
31 </script>
32 <div id="framediv">
33 <iframe id="ifr" name="ifr" src="resources/xmlhttprequest-in-unload-sync.html"></iframe>
34 </div>
35 </body>
36 </html>