Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Crashtest for bug 875402</title> |
michael@0 | 5 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 7 | </head> |
michael@0 | 8 | <body> |
michael@0 | 9 | <pre id="test"> |
michael@0 | 10 | <script class="testbody" type="text/javascript"> |
michael@0 | 11 | |
michael@0 | 12 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 13 | try { o1 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) { } |
michael@0 | 14 | try { o2 = o1.createScriptProcessor(); } catch(e) { } |
michael@0 | 15 | try { o4 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) { } |
michael@0 | 16 | try { o5 = o1.createChannelSplitter(4); } catch(e) { } |
michael@0 | 17 | try { o7 = o4.createScriptProcessor(1024, 4, 1); } catch(e) { } |
michael@0 | 18 | SpecialPowers.forceCC(); |
michael@0 | 19 | SpecialPowers.forceGC(); |
michael@0 | 20 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 21 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 22 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 23 | try { o9 = o4.createScriptProcessor(1024, 1, 4); } catch(e) { } |
michael@0 | 24 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 25 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 26 | setTimeout("try { o2.connect(o9); } catch(e) { } done();",1000) |
michael@0 | 27 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 28 | setTimeout("try { o5.disconnect() } catch(e) { }",100) |
michael@0 | 29 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 30 | try { o4.startRendering(); } catch(e) { } |
michael@0 | 31 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 32 | setTimeout("try { o7.connect(o4); } catch(e) { }",50) |
michael@0 | 33 | try { o13 = o4.createGain(); } catch(e) { } |
michael@0 | 34 | setTimeout("try { o7.connect(o13, 0, 0) } catch(e) { }",50) |
michael@0 | 35 | |
michael@0 | 36 | function done() { |
michael@0 | 37 | ok(true, "We did not crash."); |
michael@0 | 38 | SimpleTest.finish(); |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | </script> |
michael@0 | 42 | </pre> |
michael@0 | 43 | </body> |
michael@0 | 44 | </html> |