summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/form-target-iframe-location-change.html
blob: 54a3af9b4ee23bf2de4f47634cc4412104dfa622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<body>
Ensure that a form submission to a different frame is not cancelled if the origin frame navigates immediately thereafter. SUCCESS should appear in both iframes.
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.dumpChildFramesAsText();
    testRunner.waitUntilDone();
}

var childrenDone = 0;
function childDone() {
    childrenDone++;
    if (childrenDone >= 2 && window.testRunner)
        testRunner.notifyDone();
}
</script>
<iframe id="formframe" name="formframe"></iframe>
<iframe id="navframe" src="resources/submit-in-sibling-frame.html"></iframe>
</body>
</html>