tor-browser

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

test_bug875402.html (1730B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Crashtest for bug 875402</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 /* eslint-disable no-implied-eval */
     12 
     13 SimpleTest.waitForExplicitFinish();
     14 
     15 SimpleTest.requestFlakyTimeout("This test is generated by a fuzzer, so we leave these setTimeouts untouched.");
     16 
     17 let o1, o2, o4, o5, o7, o9, o13;
     18 
     19 try { o1 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
     20 try { o2 = o1.createScriptProcessor(); } catch(e) {  }
     21 try { o4 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
     22 try { o5 = o1.createChannelSplitter(4); } catch(e) {  }
     23 try { o7 = o4.createScriptProcessor(1024, 4, 1); } catch(e) {  }
     24 SpecialPowers.forceCC();
     25 SpecialPowers.forceGC();
     26 try { o1.startRendering(); } catch(e) {  }
     27 try { o2.connect(o7); } catch(e) {  }
     28 try { o7.connect(o4); } catch(e) {  }
     29 try { o9 = o4.createScriptProcessor(1024, 1, 4); } catch(e) {  }
     30 try { o2.connect(o7); } catch(e) {  }
     31 try { o9.connect(o1); } catch(e) {  }
     32 setTimeout("try { o2.connect(o9); } catch(e) {  } done();",1000)
     33 try { o7.connect(o4); } catch(e) {  }
     34 setTimeout("try { o5.disconnect() } catch(e) {  }",100)
     35 try { o2.connect(o9); } catch(e) {  }
     36 try { o4.startRendering(); } catch(e) {  }
     37 try { o2.connect(o9); } catch(e) {  }
     38 setTimeout("try { o7.connect(o4); } catch(e) {  }",50)
     39 try { o13 = o4.createGain(); } catch(e) {  }
     40 setTimeout("try { o7.connect(o13, 0, 0) } catch(e) {  }",50)
     41 
     42 function done() {
     43  ok(true, "We did not crash.");
     44  SimpleTest.finish();
     45 }
     46 
     47 </script>
     48 </pre>
     49 </body>
     50 </html>