Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <!-- Test: Create video, add poster, load. Should display poster. -->
4 <script>
5 function runTest() {
6 var v = document.createElement('video');
7 v.addEventListener('loadeddata', function(){setTimeout(function(){document.documentElement.className = '';}, 0);}, false);
8 v.id = 'v';
9 v.src = "black140x100.webm";
10 v.poster = "blue250x200.png";
11 v.preload = "auto";
12 document.body.appendChild(v);
13 }
15 </script>
16 <body style="background:white;" onload="runTest();">
17 </body>
18 </html>