Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-poster-after-playing.html
blobed3d894a7e982563fe2e4a49a418f7f685a3ff38
1 <!DOCTYPE html>
2 <title>Tests setting the poster attribute after a video is playing.</title>
3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
7 function startTest() {
8 var video = document.querySelector('video');
9 video.addEventListener("playing", function () {
10 video.poster = "content/abe.png";
11 });
12 video.addEventListener("timeupdate", function () {
13 if (video.currentTime > 1 && window.testRunner)
14 testRunner.notifyDone();
15 });
17 video.play();
20 window.addEventListener('load', startTest, false);
21 </script>
22 <video src="resources/test-positive-start-time.webm"></video>