summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html
blob: 340dd99e55880d3ebde2b437bb7e9c8bbb7c32c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<object data="resources/subframe-load-crash.svg" id="root" onload="runTest()"></object>
<script>
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}
function runTest() {
    root = document.getElementById('root').contentDocument;
    root.addEventListener('load', function() { document.open(); document.write("PASS"); document.close(); }, 1);
    setTimeout(function() {
        root.getElementById('test').appendChild(document.createElement('iframe'));
        if (window.layoutTestController)
            layoutTestController.notifyDone();      
    }, 0);
}
</script>
</html>