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

Side by Side Diff: LayoutTests/webaudio/scriptprocessornode-zero-input-channels.html

Issue 208943004: Update WebAudio layout tests to use unprefixed AudioContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add console.log to compatibility.js Created 6 years, 9 months 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/compatibility.js"></script>
4 <script src="resources/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
5 <script src="../resources/js-test.js"></script> 6 <script src="../resources/js-test.js"></script>
6 </head> 7 </head>
7 8
8 <body> 9 <body>
9 <div id="description"></div> 10 <div id="description"></div>
10 <div id="console"></div> 11 <div id="console"></div>
11 12
12 <script> 13 <script>
13 description("Tests that ScriptProcessorNode accepts 0 input channels."); 14 description("Tests that ScriptProcessorNode accepts 0 input channels.");
(...skipping 11 matching lines...) Expand all
25 26
26 function runTest() 27 function runTest()
27 { 28 {
28 if (window.testRunner) { 29 if (window.testRunner) {
29 testRunner.dumpAsText(); 30 testRunner.dumpAsText();
30 testRunner.waitUntilDone(); 31 testRunner.waitUntilDone();
31 } 32 }
32 33
33 window.jsTestIsAsync = true; 34 window.jsTestIsAsync = true;
34 35
35 var context = new webkitOfflineAudioContext(1, renderLengthInFrames, sampleR ate); 36 var context = new OfflineAudioContext(1, renderLengthInFrames, sampleRate);
36 37
37 var node; 38 var node;
38 39
39 try { 40 try {
40 node = context.createScriptProcessor(bufferSize, 0, 1); 41 node = context.createScriptProcessor(bufferSize, 0, 1);
41 testPassed("Successfully created ScriptProcessorNode."); 42 testPassed("Successfully created ScriptProcessorNode.");
42 } catch (e) { 43 } catch (e) {
43 testFailed("Failed to create ScriptProcessorNode."); 44 testFailed("Failed to create ScriptProcessorNode.");
44 } 45 }
45 46
(...skipping 12 matching lines...) Expand all
58 context.oncomplete = checkResult; 59 context.oncomplete = checkResult;
59 context.startRendering(); 60 context.startRendering();
60 } 61 }
61 62
62 runTest(); 63 runTest();
63 successfullyParsed = true; 64 successfullyParsed = true;
64 </script> 65 </script>
65 66
66 </body> 67 </body>
67 </html> 68 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/scriptprocessornode-upmix2-8channel-input.html ('k') | LayoutTests/webaudio/stereo2mono-down-mixing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698