| OLD | NEW |
| (Empty) |
| 1 <script> | |
| 2 if (window.testRunner) { | |
| 3 if (!window.localStorage.page1Started) { | |
| 4 // On the first visit, clear the back forward list to start fresh, | |
| 5 // then set up the test. | |
| 6 window.localStorage.page1Started = true; | |
| 7 testRunner.clearBackForwardList(); | |
| 8 testRunner.dumpBackForwardList(); | |
| 9 testRunner.dumpAsText(); | |
| 10 | |
| 11 // Visit two pages, then go back to page 2, which has a slow frame the | |
| 12 // second time, and then back to page 1 before page 2 commits. | |
| 13 testRunner.queueLoad("resources/back-twice-page-2.html"); | |
| 14 testRunner.queueLoad("resources/back-twice-page-3.html"); | |
| 15 testRunner.queueBackNavigation(1); | |
| 16 testRunner.queueBackNavigation(1); | |
| 17 } else { | |
| 18 delete window.localStorage.page1Started; | |
| 19 } | |
| 20 } | |
| 21 </script> | |
| 22 <p>This test checks that going back twice without committing doesn't corrupt the
back/forward list. | |
| 23 <p>If testing manually, <a href="resources/back-twice-page-2.html">click here</a
>. | |
| OLD | NEW |