| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js-test-resources/js-test-pre.js"></script> | 4 <script src="../../js-test-resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| 11 description('Test that history.pushState can be called between scheduling and fi
ring of a client redirect and still create just one new history entry. This was
regressed in r149960'); | 11 description('Test that history.pushState can be called between scheduling and fi
ring of a client redirect and still create just one new history entry. This was
regressed in r149960'); |
| 12 | 12 |
| 13 if (window.testRunner) | 13 if (window.testRunner) |
| 14 testRunner.dumpChildFramesAsText(true); | 14 testRunner.dumpChildFramesAsText(true); |
| 15 | 15 |
| 16 function run() | 16 function run() |
| 17 { | 17 { |
| 18 var iframe = document.createElement("iframe"); | 18 var iframe = document.createElement("iframe"); |
| 19 document.body.appendChild(iframe); | 19 document.body.appendChild(iframe); |
| 20 iframe.src = "resources/redirect-target.html#2"; | 20 iframe.src = "resources/redirect-target.html#2"; |
| 21 window.history.pushState("", "", location.href); | 21 window.history.pushState("", "", location.href); |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 window.onload = function() { | 24 window.onload = function() { |
| 25 setTimeout(run, 0); | 25 setTimeout(run, 0); |
| 26 } | 26 } |
| 27 | 27 |
| 28 var jsTestIsAsync = true; | 28 var jsTestIsAsync = true; |
| 29 </script> | 29 </script> |
| 30 <script src="../../js-test-resources/js-test-post.js"></script> | |
| 31 </body> | 30 </body> |
| 32 </html> | 31 </html> |
| OLD | NEW |