4 <link rel="stylesheet" href="../../../resources/js-test-style.css" type="text/css">
5 <script src="../../../resources/js-test-pre.js"></script>
6 <div id="description"></div>
7 <pre id="console"></pre>
9 description('Tests that popstate events fire synchronously during fragment navigation.');
11 window.onload = function()
13 debug('onload fired');
14 history.pushState("test", "test");
18 var initialPopState = true;
20 window.onpopstate = function()
22 debug('popstate fired');
24 if (!initialPopState) {
25 window.setTimeout(finishJSTest, 0);
29 initialPopState = false;
31 debug('Setting hash to #foo');
32 location.hash = '#foo';
33 debug('Set hash to #foo');
36 var successfullyParsed = true;
37 var jsTestIsAsync = true;
39 <script src="../../../resources/js-test-post.js"></script>