load-defer-resume-crash.html 644 Bytes
Newer Older
1 2
<html>
<script>
3 4 5
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
6 7 8 9 10 11
}

function run() {
    var frameElement = document.createElement('iframe')
    frameElement.setAttribute("src", "resources/images.html");
    document.getElementById("frameDiv").appendChild(frameElement);
12 13 14
    if (window.testRunner) {
        testRunner.setDefersLoading(true);
        setTimeout("testRunner.setDefersLoading(false);testRunner.notifyDone();",1000);
15 16 17 18 19 20 21 22 23 24
    } else
        alert("Deferring loads");
}

</script>
<body onload='run()'>
<p>For the test to pass there should be no crash.</p>
<div id="frameDiv"></div>
</body>
</html>