Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / targeted-frame-submission.html
blob4567547c0a3753cc7d4cc56bd2ac5f5e24fad141
1 <html>
2 <head>
3 <script>
5 function runTest()
7 if (window.testRunner)
8 testRunner.waitUntilDone();
10 // Not dumping as text since the DumpRenderTree does not dump the text content of child frames.
11 var button = document.getElementById('blankButton');
12 button.click();
15 function subframeLoaded()
17 if (document.getElementsByTagName('iframe')[0].contentDocument.URL == "about:blank")
18 return;
19 if (window.testRunner)
20 testRunner.notifyDone();
23 </script>
24 </head>
25 <body onload="runTest()">
26 <form action="resources/success.txt" method="GET" target="blankFrame">
27 <input type="submit" value="form" id="blankButton">
28 </form>
29 <div>This tests Targetted frame submission works. If the test is successful, the text "SUCCESS" should be shown in the iframe below.</div>
30 <iframe src="about:blank" name="blankFrame" onload="subframeLoaded()"></iframe>
31 </body>
32 </html>