Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame.html b/third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7021ae65355c07ad35b6db2a5d548d991f8ee685 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame.html |
| @@ -0,0 +1,42 @@ |
| +<!DOCTYPE html> |
| +<!-- |
| +The test verifies that a form with target="crossSiteFrame" works fine |
| +(especially in presence of out-of-process-iframes, aka OOPIFs, aka |
| +blink::RemoteFrames which are present in --site-per-process mode). |
| + |
| +The test finishes successfully, if form-target.pl ends up calling |
| +testRunner.notifyDone() after main frame calls testRuner.waitUntilDone |
| +and submits the form. Expected test output helps verify that the |
| +correct HTTP method was used and that test field's value from the form |
| +was propagated correctly. |
| +--> |
| +<html> |
| +<script> |
| + if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.dumpChildFramesAsText(); |
| + } |
| + |
| + function onLoad() { |
| + if (window.testRunner) { |
| + 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.
|
| + testRunner.waitUntilDone(); |
| + } |
| + document.forms[0].submit(); |
| + testRunner.logToStderr("Submitting the form"); |
| + } |
| +</script> |
| +<body onload="onLoad();"> |
| +<form |
| + method="POST" |
| + action="https://localhost:8443/navigation/resources/form-target.pl" |
| + target="cross-site-frame"> |
| + Test field: |
| + <input name="test-field" type="text" value="test-value"> |
| + <input type="submit" value="Submit"> |
| +</form> |
| +<iframe |
| + name="cross-site-frame" |
| + src="https://localhost:8443/navigation/resources/form-target.pl"></iframe> |
| +</body> |
| +</html> |