37 lines
720 B
HTML
37 lines
720 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="../../resources/js-test-pre.js"></script>
|
|
</head>
|
|
<body>
|
|
<span id="e"></span>
|
|
<span id="f"></span>
|
|
<script>
|
|
description("This tests cancelling a requestAnimationFrame callback");
|
|
|
|
var callbackFired = false;
|
|
var e = document.getElementById("e");
|
|
var id = window.requestAnimationFrame(function() {
|
|
}, e);
|
|
|
|
window.cancelAnimationFrame(id);
|
|
|
|
if (window.testRunner)
|
|
testRunner.displayAndTrackRepaints();
|
|
|
|
setTimeout(function() {
|
|
shouldBeFalse("callbackFired");
|
|
}, 100);
|
|
|
|
if (window.testRunner)
|
|
testRunner.waitUntilDone();
|
|
|
|
setTimeout(function() {
|
|
isSuccessfullyParsed();
|
|
if (window.testRunner)
|
|
testRunner.notifyDone();
|
|
}, 200);
|
|
</script>
|
|
</body>
|
|
</html>
|