5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
12 document
.getElementById("logger").innerText
+= txt
+ "\n";
16 window
.onload = function()
18 if (!window
.location
.search
) {
19 window
.onunload = function() { history
.replaceState({}, '', '?FAIL') }
20 window
.location
= window
.location
.href
+ "?PASS";
22 log(window
.location
.search
.slice(1));
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
31 This test calls replaceState during the onload handler to verify that the correct document's state is modified.
32 If the test succeeds the URL and text below will show a success message.
34 <pre id=
"logger"></pre>