Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / webrtc / webaudio_crash.html
blobd4c5447501eb13f55d213ba3aad6b1d42f2936f7
1 <script>
2 audioContext = new AudioContext();
3 dstNode = audioContext.createMediaStreamDestination();
4 mediaStream = dstNode.stream;
6 // Allocate AudioNode with a reference to AudioSourceProvider owned by
7 // the media stream track.
8 srcNode = audioContext.createMediaStreamSource(mediaStream);
10 // Free media stream track.
11 mediaTrack = mediaStream.getAudioTracks()[0];
12 mediaStream.removeTrack(mediaTrack);
13 mediaTrack = null;
14 gc();
16 // Use AudioSourceProvider owned by the media stream track, and ensure there
17 // is no crash.
18 srcNode.connect(audioContext.destination);
19 </script>