tor-browser

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

test_temporaryFileBlob.html (830B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 1202006</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="application/javascript" src="common_temporaryFileBlob.js"></script>
      8  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      9 </head>
     10 <body>
     11  <script type="application/javascript">
     12 
     13 var tests = [
     14  // from common_temporaryFileBlob.js:
     15  test_simple,
     16  test_reuse,
     17  test_abort,
     18 
     19  test_worker,
     20  test_worker_reuse,
     21  test_worker_abort,
     22 ];
     23 
     24 function next() {
     25  if (!tests.length) {
     26    SimpleTest.finish();
     27    return;
     28  }
     29 
     30  var test = tests.shift();
     31  test();
     32 }
     33 
     34 SpecialPowers.pushPrefEnv({ "set" : [[ "dom.blob.memoryToTemporaryFile", 1 ]] },
     35                          next);
     36 SimpleTest.waitForExplicitFinish();
     37 
     38  </script>
     39 </body>
     40 </html>