tor-browser

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

test_AudioContext.html (584B)


      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.waitForExplicitFinish();
     13 addLoadEvent(function() {
     14  var ac = new AudioContext();
     15  ok(ac, "Create a AudioContext object");
     16  ok(ac instanceof EventTarget, "AudioContexts must be EventTargets");
     17  SimpleTest.finish();
     18 });
     19 
     20 </script>
     21 </pre>
     22 </body>
     23 </html>