Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / stateobjects / pushstate-clears-forward-history.html
blobe4c8b383bdfc5c7445fc8cabc42d3010bcc69ce1
1 <script>
2 onload = function() {
3 if (location.search.substring(1).length == 0) {
4 sessionStorage.testStage = 0;
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpBackForwardList();
8 testRunner.waitUntilDone();
12 // Location changes need to happen outside the onload handler to generate history entries.
13 setTimeout(function() {
14 switch (sessionStorage.testStage++) {
15 case 0:
16 location = "?a";
17 break;
18 case 1:
19 location = "?b";
20 break;
21 case 2:
22 history.back();
23 break;
24 case 3:
25 history.pushState(null, null);
26 if (window.testRunner)
27 testRunner.notifyDone();
28 break;
30 }, 0);
32 onunload = function() {
33 // disable page cache
35 </script>
36 <body>
37 You should NOT see an active forward button.
38 </body>