444-1-ref.html 630 B

123456789101112131415161718192021
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait">
  3. <body>
  4. <video id="v1" style="position:absolute; left:0; top:0"></video>
  5. <!-- hide bottom of video -->
  6. <div style="position:absolute; top:120px; left:0; right:0; bottom:0; background:black"></div>
  7. <script>
  8. function doTest() {
  9. // Set source now so that the loadeddata event can't fire before
  10. // this function runs.
  11. v1.src = "seek420.ogv";
  12. v1.play();
  13. v1.addEventListener("loadeddata", function() {
  14. setTimeout(function() {
  15. document.documentElement.removeAttribute('class');
  16. }, 50);
  17. });
  18. }
  19. document.addEventListener("MozReftestInvalidate", doTest, false);
  20. </script>