Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / stateobjects / replacestate-in-onunload.html
blobb133aaf0fa8e820bcbab6148b6755e72c4966bff
1 <html>
2 <head>
3 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
10 function log(txt)
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";
21 } else {
22 log(window.location.search.slice(1));
23 if (window.testRunner)
24 testRunner.notifyDone();
28 </script>
29 <body>
30 <p>
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.
33 </p>
34 <pre id="logger"></pre>
35 </body>
36 </html>