tor-browser

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

test_compressed_multipart.html (1135B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1600211
      5 
      6 Loads a document that is served as multipart/x-mixed-replace as well as gzip compressed.
      7 Checks that we correctly decompress and display it (via running JS within the document to notify us).
      8 -->
      9 <head>
     10  <title>Test for Bug 1600211</title>
     11  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     12  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     13 </head>
     14 <body>
     15 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1600211">Mozilla Bug 1600211</a>
     16 <p id="display"></p>
     17 <div id="content" style="display: none">
     18  
     19 </div>
     20 <pre id="test">
     21 <script type="application/javascript">
     22 
     23 /** Test for Bug 1600211 */
     24 SimpleTest.waitForExplicitFinish();
     25 
     26 var w;
     27 
     28 function finishTest() {
     29  is(w.document.documentElement.textContent, "opener.finishTest();");
     30  is(w.document.documentElement.innerHTML, "<head><script>opener.finishTest();</" +
     31                                           "script></head>");
     32  w.close();
     33  SimpleTest.finish();
     34 }
     35 
     36 w = window.open("file_compressed_multipart");
     37 
     38 </script>
     39 </pre>
     40 </body>
     41 </html>