diff options
Diffstat (limited to 'testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/crashtests')
-rw-r--r-- | testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/crashtests/stop-before-start.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/crashtests/stop-before-start.html b/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/crashtests/stop-before-start.html new file mode 100644 index 0000000000..89d22c0d18 --- /dev/null +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/crashtests/stop-before-start.html @@ -0,0 +1,16 @@ +<html class="test-wait"> +<head> + <title> + Test stop() time before start() time on OscillatorNode with AudioParam + </title> +</head> +<script> + const ac = new OfflineAudioContext({length: 136, sampleRate: 48000}); + const osc = new OscillatorNode(ac); + osc.start(61/ac.sampleRate); + osc.stop(31/ac.sampleRate); + osc.detune.setValueAtTime(2.0, 1/ac.sampleRate); + ac.startRendering().then( + () => document.documentElement.removeAttribute("class")); +</script> +</html> |