5 <title>Delayed load of poster should not overwrite intrinsic size of video</title>
6 <script src=video-test.js></script>
7 <script src=media-file.js></script>
10 border: 3px solid red;
11 background-color: magenta;
17 video = document.getElementById('video');
19 video.addEventListener("loadeddata", function(ev) {
21 consoleWrite("<br><b>Video loaded</b><br>");
23 testExpected("video.clientWidth", 320);
24 testExpected("video.clientHeight", 240);
25 testExpected("video.videoWidth", 320);
26 testExpected("video.videoHeight", 240);
28 video.poster = "content/abe.png";
29 setTimeout(testAfterLoadingPoster, 100);
32 video.src = findMediaFile("video", "content/test");
35 function testAfterLoadingPoster()
37 consoleWrite("<br><b>Poster loaded</b><br>");
39 testExpected("video.clientWidth", 320);
40 testExpected("video.clientHeight", 240);
41 testExpected("video.videoWidth", 320);
42 testExpected("video.videoHeight", 240);
50 <body onload="start()">
51 <video id=video></video>