Home | History | Annotate | Download | only in data
      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");
     11    }
     12    xhr.open("GET", "push_state.html", true);
     13    xhr.send();
     14 }
     15 </script>
     16 </body>
     17