| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head/> | 5 </head/> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description("Check that PopStateEvent.state always has a correct value."); | 8 description("Check that PopStateEvent.state always has a correct value."); |
| 9 | 9 |
| 10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 debug("Push state 3"); | 30 debug("Push state 3"); |
| 31 history.pushState(3, "", ""); | 31 history.pushState(3, "", ""); |
| 32 shouldEvaluateTo("popStateEvent.state", 1); | 32 shouldEvaluateTo("popStateEvent.state", 1); |
| 33 shouldEvaluateTo("history.state", 3); | 33 shouldEvaluateTo("history.state", 3); |
| 34 | 34 |
| 35 setTimeout(finishJSTest, 0); | 35 setTimeout(finishJSTest, 0); |
| 36 } | 36 } |
| 37 | 37 |
| 38 debug("Go back"); | 38 debug("Go back"); |
| 39 history.back(); | 39 window.onload = function() { |
| 40 history.back(); |
| 41 }; |
| 40 </script> | 42 </script> |
| 41 </body> | 43 </body> |
| 42 </html> | 44 </html> |
| OLD | NEW |