blob: bf64056da41fbcf4851b1b2fff98e81357b66356 [file] [log] [blame]
<!DOCTYPE html>
<title>Test that video frame replaces poster on seeking.</title>
<script>
function doSetup() {
// TODO(srirama.m): convert this test to reference test.
var video = document.querySelector("video");
video.src = "content/test.ogv";
video.addEventListener("canplaythrough", function () {
video.currentTime = 1; // so the snapshot always has the same frame.
});
testRunner.waitUntilDone();
video.addEventListener("seeked", function() {
testRunner.notifyDone();
});
}
window.addEventListener("load", doSetup, false);
</script>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34966">https://bugs.webkit.org/show_bug.cgi?id=34966</a>. <br>
You should see the video below.</p>
<video width="480" height="270" poster="content/abe.png"></video>
</body>