blob: 9a507550af962f67cbf1d9b2fcf547cac8f50b19 [file] [log] [blame]
dino@apple.com0717e0d2013-10-11 09:44:39 +00001<p>This test does not crash.</p>
dino@apple.com90e5f742013-10-11 09:43:56 +00002<iframe></iframe>
3<iframe></iframe>
4<iframe></iframe>
5<iframe></iframe>
6
7<script>
8if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11}
12
13var frame = document.querySelector("iframe");
14
15window.onload = function() {
16 // Convert NodeList to Array so that we can use forEach.
17 var windows = Array.prototype.slice.call(window.frames);
18 var numOutstandingCalls = windows.length - 1; // Remember we remove one client.
19 windows.forEach(function (win) {
20 win.requestAnimationFrame(function () {});
21 win.requestAnimationFrame(function () {
22 if (frame.parentNode)
23 frame.parentNode.removeChild(frame);
24 numOutstandingCalls--;
25 if (!numOutstandingCalls && window.testRunner)
26 testRunner.notifyDone();
27 });
28 });
29}
30</script>