Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / tests / data / push_state.html
blob3e0e985172d712a3b299ea94d0fd6185fccaf2eb
1 <body onload="sendXHR()">
2 <script>
3 // We need to test pushState after the load event has finished.
4 // Do so on an XHR callback to ensure that it's after the load event,
5 // but WebFrameTest has a pending task to wait for.
6 function sendXHR() {
7 var xhr = new XMLHttpRequest();
8 xhr.onreadystatechange = function() {
9 if (xhr.readyState == 4)
10 history.pushState("test", "", "#1");
12 xhr.open("GET", "push_state.html", true);
13 xhr.send();
15 </script>
16 </body>