summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-detach-element2.html
blob: 367559dc71260c3aa8ff2e49300d559b252f61fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
window.onload = function() {
    var el = document.getElementsByTagName("iframe")[0];
    window.frames[0].requestAnimationFrame(function() {
        el.parentNode.removeChild(el);
    });

    if (window.testRunner) {
        window.setTimeout(function() {
            testRunner.notifyDone();
        }, 50);
    }
}
</script>
Test passes is there is no crash.
<iframe></iframe>
<iframe></iframe>