tor-browser

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

test_nodeCreationDocumentGone.html (759B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test whether we can create an AudioContext interface</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.requestCompleteLog();
     13 SimpleTest.waitForExplicitFinish();
     14 
     15 var a = window.open("file_nodeCreationDocumentGone.html");
     16 a.onbeforeunload = function() {
     17  setTimeout(function(){
     18    try {
     19      a.context.createScriptProcessor(512, 1, 1);
     20    } catch(e) {
     21      ok (true,"got exception");
     22    }
     23    setTimeout(function() {
     24      ok (true,"no crash");
     25      SimpleTest.finish();
     26    }, 0);
     27  }, 0);
     28 }
     29 
     30 
     31 </script>
     32 </pre>
     33 </body>
     34 </html>