Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / waveshaper-364379.html
blobe19267b9cb20d76e2e99f8cd01a37572b61419e7
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>
8 <body>
9 <div id="description"></div>
10 <div id="console"></div>
12 <script>
13 description("Test WaveShaperNode");
15 function runTest() {
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");
30 finishJSTest();
32 context.startRendering();
33 waveShaper.connect(context.destination);
34 waveShaper.oversample = "4x";
37 runTest();
38 successfullyParsed = true;
39 </script>
40 </body>
41 </html>