1 <body onload=
"sendXHR()">
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.
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);