2 <html class=
"reftest-wait">
3 <!-- Test: Create video, load. Add poster frame, load again, poster should show. -->
6 var v
= document
.createElement('video');
8 var endTest = function() {
9 setTimeout(function(){document
.documentElement
.className
= '';}, 0);
12 var addPoster = function() {
13 v
.removeEventListener('loadeddata', addPoster
);
14 v
.poster
= "blue140x100.png";
15 v
.addEventListener('loadeddata', endTest
);
19 v
.addEventListener('loadeddata', addPoster
);
21 v
.src
= "black140x100.webm";
23 document
.body
.appendChild(v
);
27 <body style=
"background:white;" onload=
"runTest();">