layout/reftests/webm-video/poster-10.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

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>

mercurial