| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test.js"></script> |
| <script src="resources/compatibility.js"></script> |
| </head> |
| |
| <body> |
| <div id="description"></div> |
| <div id="console"></div> |
| |
| <script> |
| description("Test WaveShaperNode"); |
| |
| function runTest() { |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| |
| window.jsTestIsAsync = true; |
| |
| // Simplified test from crbug.com/364379 |
| var sampleRate = 44100; |
| var context = new OfflineAudioContext(1, sampleRate, sampleRate); |
| var waveShaper = context.createWaveShaper(); |
| context.oncomplete = function () { |
| // If we get here, we passed the test from bug 364379. Just say we succeeded. |
| testPassed("WaveShaper successfully handled change in oversampling"); |
| finishJSTest(); |
| }; |
| context.startRendering(); |
| waveShaper.connect(context.destination); |
| waveShaper.oversample = "4x"; |
| } |
| |
| runTest(); |
| successfullyParsed = true; |
| </script> |
| </body> |
| </html> |