Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / window-collection-length-no-crash.html
blob7959dbdb0701efbffb8f580e547f7a984baffb39
1 <html>
2 <head></head>
3 <body>
4 <p id="description"></p>
5 <br>
6 <iframe name="subframe"></iframe>
7 <br>
8 This tests that window.frames.length does not crash the browser after the
9 frame navigates away from the current page. You should see "SUCCESS" below
10 once the test completes.
11 <br>
12 <div id="status">Test in progress...</div>
14 <script>
15 if (window.testRunner) {
16 window.testRunner.dumpAsText();
17 window.testRunner.waitUntilDone();
20 var myFrames = subframe.frames;
22 function done() {
23 var foo = myFrames.length;
24 document.getElementById("status").innerText = "SUCCESS";
25 if (window.testRunner)
26 window.testRunner.notifyDone();
29 subframe.document.location = "resources/notify-parent-done.html";
30 </script>
31 </body>
32 </html>