1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
4 <script src=
"../resources/js-test.js"></script>
5 <script src=
"resources/compatibility.js"></script>
9 <div id=
"description"></div>
10 <div id=
"console"></div>
13 description("Test WaveShaperNode");
16 if (window
.testRunner
) {
17 testRunner
.dumpAsText();
18 testRunner
.waitUntilDone();
21 window
.jsTestIsAsync
= true;
23 // Simplified test from crbug.com/364379
24 var sampleRate
= 44100;
25 var context
= new OfflineAudioContext(1, sampleRate
, sampleRate
);
26 var waveShaper
= context
.createWaveShaper();
27 context
.oncomplete = function () {
28 // If we get here, we passed the test from bug 364379. Just say we succeeded.
29 testPassed("WaveShaper successfully handled change in oversampling");
32 context
.startRendering();
33 waveShaper
.connect(context
.destination
);
34 waveShaper
.oversample
= "4x";
38 successfullyParsed
= true;