Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / navigation / post-goback1.html
1 <script>
2   sessionStorage.formTargetShouldNavAndGoBack = true;
3   if (window.testRunner) {
4       testRunner.dumpAsText();
5       testRunner.waitUntilDone();
6       testRunner.clearBackForwardList();
7       testRunner.dumpBackForwardList();
8   }
9   window.location.href = 'resources/page-that-posts.html';
10 </script>  
11
12 <p>Tests that POST-ing a page, navigating to another page and then going back is handled correctly. If this test passes, you will see a page indicating a form was POSTed.</p>