<!DOCTYPE html> | |
<script src="../fast/repaint/resources/text-based-repaint.js"></script> | |
<video id="video" controls></video> | |
<script> | |
if (testRunner) | |
testRunner.waitUntilDone(); | |
var video = document.getElementById("video"); | |
var done = false; | |
var listener = document.addEventListener("canplaythrough", function() { | |
if (done) | |
return; | |
done = true; | |
video.currentTime = video.duration; | |
runRepaintTest(); | |
}, true); | |
function repaintTest() { | |
video.play(); | |
} | |
video.src = "content/test-25fps.ogv"; | |
</script> |