Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/waveshaper-364379.html

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698