Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-poster-load-after-playing.html
blob0d7a590109b2b9ccde564571af696f856ac70a1e
1 <!DOCTYPE html>
2 <title>Tests setting the poster attribute after a video is playing and then calling load.</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 video.removeAttribute("src");
12 video.load();
13 if (window.testRunner)
14 setTimeout(function() { testRunner.notifyDone(); }, 1000);
15 });
17 video.src = "resources/test-positive-start-time.webm"
18 video.play();
21 window.addEventListener('load', startTest, false);
22 </script>
23 <video></video>