| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../resources/js-test.js"></script> | |
| 5 <script src="resources/compatibility.js"></script> | |
| 6 </head> | |
| 7 | |
| 8 <body> | |
| 9 <div id="description"></div> | |
| 10 <div id="console"></div> | |
| 11 | |
| 12 <script> | |
| 13 description("Test WaveShaperNode"); | |
| 14 | |
| 15 function runTest() { | |
| 16 if (window.testRunner) { | |
| 17 testRunner.dumpAsText(); | |
| 18 testRunner.waitUntilDone(); | |
| 19 } | |
| 20 | |
| 21 window.jsTestIsAsync = true; | |
| 22 | |
| 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 su
cceeded. | |
| 29 testPassed("WaveShaper successfully handled change in oversampling"); | |
| 30 finishJSTest(); | |
| 31 }; | |
| 32 context.startRendering(); | |
| 33 waveShaper.connect(context.destination); | |
| 34 waveShaper.oversample = "4x"; | |
| 35 } | |
| 36 | |
| 37 runTest(); | |
| 38 successfullyParsed = true; | |
| 39 </script> | |
| 40 </body> | |
| 41 </html> | |
| OLD | NEW |