<pre id="console"></pre>
<script>
    if (window.layoutTestController) {
        layoutTestController.dumpAsText();
        layoutTestController.waitUntilDone();
    }
    function log(msg)
    {
        document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
    }

    function pass()
    {
        log("PASS");
        if (window.layoutTestController)
            layoutTestController.notifyDone();
    }

    function fail()
    {
        log("FAIL");
        if (window.layoutTestController)
            layoutTestController.notifyDone();
    }
</script>
<iframe src="resources/subframe-stop-load-in-unload-handler-using-window-stop.html"></iframe>
