chromium/third_party/blink/web_tests/media/video-poster-after-playing.html

<!DOCTYPE html>
<title>Tests setting the poster attribute after a video is playing.</title>
<video></video>
<script>
if (window.testRunner)
  testRunner.waitUntilDone();

function notifyDone() {
  if (testRunner)
    testRunner.notifyDone();
}

function startTest() {
  var video = document.querySelector('video');
  video.addEventListener("ended", notifyDone);
  video.addEventListener("playing", function () {
    // Set the poster image. This should not render on top of the video if there
    // is a video frame to display.
    video.poster = "content/abe.png";

    // Check against expectations for the next video frame (or the end of the
    // video, if there is none).
    video.requestVideoFrameCallback(notifyDone);
  });

  video.src = "resources/test-positive-start-time.webm";
  video.play();
}

window.addEventListener('load', startTest, false);
</script>