summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/frames/seamless/seamless-hyperlink-override.html
blob: 5b10c9d3e88486f0eefe0bb6e2ad7851f48fb714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<script src="../../js/resources/js-test-pre.js"></script>
<script>
if (window.testRunner)
    testRunner.waitUntilDone();

window.addEventListener('message', function(evt) {
    shouldBeEqualToString("frames[0].frames[0].document.body.textContent", "DONE\n");

    if (window.testRunner)
        testRunner.notifyDone();
}, false);
</script>
<iframe srcdoc="
    Waiting...
    <script>
        window.onload=function() {
            frames[0].document.getElementsByTagName('a')[0].click();
        }
    </script>
    <iframe seamless
            srcdoc='<a target=_self href=resources/done.html>Click me</a>'></iframe>
"></iframe>