<html>
<object data="resources/subframe-load-crash.svg" id="root" onload="runTest()"></object>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.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.testRunner)
            testRunner.notifyDone();      
    }, 0);
}
</script>
</html>
