Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / stateobjects / popstate-after-load-complete-body-inline-attribute.html
blob78e6cec349dd63fbd130329e71e023107231365b
1 <html>
2 <head>
3 <script>
5 if (window.testRunner) {
6 testRunner.clearBackForwardList();
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 function log(txt)
13 document.getElementById("logger").innerText += txt + "\n";
16 function runTest()
18 history.pushState("StateStringData", "New title");
19 log("History length is " + history.length);
20 history.back();
23 function statePopped()
25 log("State popped - " + event.state + " (type " + typeof event.state + ")");
26 if (event.state == null) {
27 document.body.onpopstate = statePopped;
28 history.forward();
29 } else if (window.testRunner)
30 testRunner.notifyDone();
33 </script>
34 <body onload="runTest();" onpopstate="statePopped();">
35 <pre>
36 This test does the following:
37 -Uses body.onpopstate to add a popstate handler (both by using the inline attribute and a script-assigned attribute)
38 -Makes a call to pushState()
39 -Makes sure the history length is correct
40 -Goes back, and makes sure the popstate event is correct
41 -Goes forward, and makes sure the popstate event is correct
42 </pre><br>
43 <pre id="logger"></pre>
44 </body>
45 </html>