content/media/webaudio/test/test_bug875402.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Crashtest for bug 875402</title>
     5   <script type="text/javascript" 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">
    12 SimpleTest.waitForExplicitFinish();
    13 try { o1 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
    14 try { o2 = o1.createScriptProcessor(); } catch(e) {  }
    15 try { o4 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
    16 try { o5 = o1.createChannelSplitter(4); } catch(e) {  }
    17 try { o7 = o4.createScriptProcessor(1024, 4, 1); } catch(e) {  }
    18 SpecialPowers.forceCC();
    19 SpecialPowers.forceGC();
    20 try { o1.startRendering(); } catch(e) {  }
    21 try { o2.connect(o7); } catch(e) {  }
    22 try { o7.connect(o4); } catch(e) {  }
    23 try { o9 = o4.createScriptProcessor(1024, 1, 4); } catch(e) {  }
    24 try { o2.connect(o7); } catch(e) {  }
    25 try { o9.connect(o1); } catch(e) {  }
    26 setTimeout("try { o2.connect(o9); } catch(e) {  } done();",1000)
    27 try { o7.connect(o4); } catch(e) {  }
    28 setTimeout("try { o5.disconnect() } catch(e) {  }",100)
    29 try { o2.connect(o9); } catch(e) {  }
    30 try { o4.startRendering(); } catch(e) {  }
    31 try { o2.connect(o9); } catch(e) {  }
    32 setTimeout("try { o7.connect(o4); } catch(e) {  }",50)
    33 try { o13 = o4.createGain(); } catch(e) {  }
    34 setTimeout("try { o7.connect(o13, 0, 0) } catch(e) {  }",50)
    36 function done() {
    37   ok(true, "We did not crash.");
    38   SimpleTest.finish();
    39 }
    41 </script>
    42 </pre>
    43 </body>
    44 </html>

mercurial