blob: 048c4ceff514c5e6f43d405c16fcaf9d4a497bbe [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<span id="e"></span>
<span id="f"></span>
<script>
description("Tests basic use of requestAnimationFrame");
var e = document.getElementById("e");
var callbackInvoked = false;
window.requestAnimationFrame(function() {
callbackInvoked = true;
}, e);
if (window.testRunner)
testRunner.displayAndTrackRepaints();
setTimeout(function() {
shouldBeTrue("callbackInvoked");
}, 100);
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
}, 200);
</script>
</body>
</html>