Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 3 The test verifies that a form with target="crossSiteFrame" works fine | |
| 4 (especially in presence of out-of-process-iframes, aka OOPIFs, aka | |
| 5 blink::RemoteFrames which are present in --site-per-process mode). | |
| 6 | |
| 7 The test finishes successfully, if form-target.pl ends up calling | |
| 8 testRunner.notifyDone() after main frame calls testRuner.waitUntilDone | |
| 9 and submits the form. Expected test output helps verify that the | |
| 10 correct HTTP method was used and that test field's value from the form | |
| 11 was propagated correctly. | |
| 12 --> | |
| 13 <html> | |
| 14 <script> | |
| 15 if (window.testRunner) { | |
| 16 testRunner.dumpAsText(); | |
| 17 testRunner.dumpChildFramesAsText(); | |
| 18 } | |
| 19 | |
| 20 function onLoad() { | |
| 21 if (window.testRunner) { | |
| 22 testRunner.logToStderr("Caling waitUntilDone"); | |
|
alexmos
2016/05/25 17:59:43
nit: s/Caling/Calling/, but are the stderr logs ev
Łukasz Anforowicz
2016/05/25 21:31:43
I've removed the logging statements.
| |
| 23 testRunner.waitUntilDone(); | |
| 24 } | |
| 25 document.forms[0].submit(); | |
| 26 testRunner.logToStderr("Submitting the form"); | |
| 27 } | |
| 28 </script> | |
| 29 <body onload="onLoad();"> | |
| 30 <form | |
| 31 method="POST" | |
| 32 action="https://localhost:8443/navigation/resources/form-target.pl" | |
| 33 target="cross-site-frame"> | |
| 34 Test field: | |
| 35 <input name="test-field" type="text" value="test-value"> | |
| 36 <input type="submit" value="Submit"> | |
| 37 </form> | |
| 38 <iframe | |
| 39 name="cross-site-frame" | |
| 40 src="https://localhost:8443/navigation/resources/form-target.pl"></iframe> | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |