Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / navigation / postredirect-frames-goback1.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 if (window.testRunner) {
6     testRunner.dumpAsText();
7     testRunner.dumpChildFramesAsText();
8     testRunner.waitUntilDone();
9     testRunner.dumpBackForwardList();
10  }
11    
12 onload = function()
13 {
14     if (sessionStorage.didNav) {
15         delete sessionStorage.didNav;
16         if (window.testRunner)
17             testRunner.notifyDone();
18     } else {
19         document.getElementById('the-form').submit();
20     }
21 }
22    
23 </script>  
24
25 <p>Tests the following sequence of events:</p>
26 <ol>
27   <li>Submit a form via POST to a frame (redirect-to-go-back.pl).</li>
28   <li>Form page does a 302 to a static page (top-go-back.html), still within the frame.</li>
29   <li>Static page does a top-level navigation to another static page (go-back.html)</li>
30   <li>This static page goes back.</li>
31 </ol>
32
33 <p>We should end up showing the top-level page with the first static page inside the frame.</li>
34
35 <form id="the-form" method="POST" action="resources/redirect-to-go-back.pl" target="target-frame">
36   <input name="the-input" value="input value goes here">
37 </form>
38
39 <iframe name="target-frame" src="about:blank"></iframe>
40 </body>
41 </html>