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

Side by Side Diff: LayoutTests/webaudio/audiochannelsplitter.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> 1 <!DOCTYPE html>
2 2
3 <!-- 3 <!--
4 Tests that AudioChannelSplitter works correctly. 4 Tests that AudioChannelSplitter works correctly.
5 --> 5 -->
6 6
7 <html> 7 <html>
8 <head> 8 <head>
9 <script src="../resources/js-test.js"></script> 9 <script src="../resources/js-test.js"></script>
10 <script src="resources/compatibility.js"></script>
10 <script type="text/javascript" src="resources/audio-testing.js"></script> 11 <script type="text/javascript" src="resources/audio-testing.js"></script>
11 </head> 12 </head>
12 13
13 <body> 14 <body>
14 15
15 <div id="description"></div> 16 <div id="description"></div>
16 <div id="console"></div> 17 <div id="console"></div>
17 18
18 <script> 19 <script>
19 description("Tests AudioChannelSplitter."); 20 description("Tests AudioChannelSplitter.");
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 function runTest() { 76 function runTest() {
76 if (window.testRunner) { 77 if (window.testRunner) {
77 testRunner.dumpAsText(); 78 testRunner.dumpAsText();
78 testRunner.waitUntilDone(); 79 testRunner.waitUntilDone();
79 } 80 }
80 81
81 window.jsTestIsAsync = true; 82 window.jsTestIsAsync = true;
82 83
83 // Create stereo offline audio context. 84 // Create stereo offline audio context.
84 context = new webkitOfflineAudioContext(2, lengthInSampleFrames, sampleRate) ; 85 context = new OfflineAudioContext(2, lengthInSampleFrames, sampleRate);
85 86
86 try { 87 try {
87 var splitternode = context.createChannelSplitter(0); 88 var splitternode = context.createChannelSplitter(0);
88 testFailed("Exception should be thrown for numberOfOutputs <= 0."); 89 testFailed("Exception should be thrown for numberOfOutputs <= 0.");
89 } catch(e) { 90 } catch(e) {
90 testPassed("Exception been thrown for numberOfOutputs <= 0."); 91 testPassed("Exception been thrown for numberOfOutputs <= 0.");
91 } 92 }
92 93
93 try { 94 try {
94 var splitternode = context.createChannelSplitter(33); 95 var splitternode = context.createChannelSplitter(33);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 context.oncomplete = checkResult; 153 context.oncomplete = checkResult;
153 context.startRendering(); 154 context.startRendering();
154 } 155 }
155 156
156 runTest(); 157 runTest();
157 158
158 </script> 159 </script>
159 160
160 </body> 161 </body>
161 </html> 162 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/audiochannelmerger-stereo.html ('k') | LayoutTests/webaudio/audiocontext-max-contexts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698