summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-callback-id.html
blob: 67e9b204aeb6d2d21b0d8f266de58cef9bf78d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script>
if (window.testRunner) {
    window.testRunner.dumpAsText();
    window.testRunner.waitUntilDone();
}

function runTest() {
    var id = window.requestAnimationFrame(function () {});
    var results = document.getElementById("results");

    if (id > 0)
        results.innerText = "PASSED: Callback id was > 0";
    else
        results.innerText = "FAILED: Callback id was <= 0";

    if (window.testRunner)
        window.testRunner.notifyDone();
}

window.addEventListener("load", runTest, false);
</script>
<div id="results"></div>