tor-browser

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

test_video_gzip_encoding.html (880B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <head>
      4    <title>Bug 1370177 gzipped mp4 with Content-Length</title>
      5    <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      7    <script type="text/javascript" src="manifest.js"></script>
      8  </head>
      9  <body>
     10    <!--
     11      Tests that an MP4 file served over a "Content-Encoding: gzip"
     12      HTTP channel with a "Content-Length" header set to the length
     13      of the compressed file works.
     14    -->
     15    <video id='v' src="http://mochi.test:8888/tests/dom/media/test/gzipped_mp4.sjs" controls autoplay></video>
     16    <script>
     17      SimpleTest.waitForExplicitFinish();
     18      var v = document.getElementById('v');
     19      v.addEventListener("ended", ()=>{
     20        SimpleTest.finish();
     21        mediaTestCleanup();
     22      });
     23    </script>
     24  </body>
     25 </html>