Crash under WebCore::EventTarget::fireEventListeners
[WebKit-https.git] / LayoutTests / webaudio / resources / audiobuffersource-ended-detached-frame-iframe.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="audio-testing.js"></script>
5 <script src="audiobuffersource-testing.js"></script>
6 <script>
7     var context;
8     var source;
9
10     function runTest()
11     {
12         var sampleRate = 44100.0;
13         var numberOfFrames = 32;
14         context = new webkitOfflineAudioContext(1, numberOfFrames, sampleRate);
15         source = context.createBufferSource();
16         source.buffer = createTestBuffer(context, numberOfFrames);
17         source.connect(context.destination);
18         source.onended = function()
19         {
20         }
21         source.start(0);
22         context.startRendering();
23     }
24 </script>
25 </body>
26 </html>