blob: 069724df47def2a01ab9640fb44a603f46021c7d [file] [log] [blame]
<!DOCTYPE html>
<title>Test that video frame replaces poster on seeking.</title>
<script src="media-file.js"></script>
<script>
function doSetup() {
// TODO(srirama.m): convert this test to reference test.
var video = document.querySelector("video");
video.src = findMediaFile("video", "content/test");
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>