Reproducible null deref under ScriptedAnimationController::createDisplayRefreshMonitor
[WebKit-https.git] / LayoutTests / fast / animation / request-animation-frame-callback-id.html
1 <script>
2 if (window.testRunner) {
3     window.testRunner.dumpAsText();
4     window.testRunner.waitUntilDone();
5 }
6
7 function runTest() {
8     var id = window.requestAnimationFrame(function () {});
9     var results = document.getElementById("results");
10
11     if (id > 0)
12         results.innerText = "PASSED: Callback id was > 0";
13     else
14         results.innerText = "FAILED: Callback id was <= 0";
15
16     if (window.testRunner)
17         window.testRunner.notifyDone();
18 }
19
20 window.addEventListener("load", runTest, false);
21 </script>
22 <div id="results"></div>