tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_vp9_superframes.html (762B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test that all VP9 frames are decoded (contains superframes)</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      7 </head>
      8 <body>
      9 <pre id="test">
     10 <script class="testbody" type="text/javascript">
     11 
     12 SimpleTest.waitForExplicitFinish();
     13 
     14 function test() {
     15  var video = document.createElement("video");
     16  video.src = "vp9-superframes.webm";
     17  video.play();
     18  video.addEventListener("ended", function () {
     19    let vpq = video.getVideoPlaybackQuality();
     20    is(vpq.totalVideoFrames, 120, "totalVideoFrames must contains 120 frames");
     21    SimpleTest.finish();
     22  });
     23 }
     24 
     25 addLoadEvent(function() {
     26  test();
     27 });
     28 </script>
     29 </pre>
     30 </body>
     31 </html>