| <iframe id="subframe" name='subframe'></iframe> |
| This tests that window.frames.length does not crash the browser after the |
| frame navigates away from the current page. You should see "SUCCESS" below |
| <div id="status">Test in progress...</div> |
| window.testRunner.dumpAsText(); |
| window.testRunner.waitUntilDone(); |
| var myFrames = subframe.frames; |
| var foo = myFrames.length; |
| document.getElementById("status").innerText = "SUCCESS"; |
| window.testRunner.notifyDone(); |
| subframe.document.location = "resources/notify-parent-done.html"; |