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

Side by Side Diff: LayoutTests/webaudio/pannernode-basic.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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.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("Basic tests for PannerNode."); 14 description("Basic tests for PannerNode.");
14 15
15 var context = 0; 16 var context = 0;
16 17
17 function runTest() { 18 function runTest() {
18 if (window.testRunner) { 19 if (window.testRunner) {
19 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
20 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
21 } 22 }
22 23
23 window.jsTestIsAsync = true; 24 window.jsTestIsAsync = true;
24 25
25 context = new webkitAudioContext(); 26 context = new AudioContext();
26 var panner = context.createPanner(); 27 var panner = context.createPanner();
27 28
28 if (panner.numberOfInputs === 1) 29 if (panner.numberOfInputs === 1)
29 testPassed("PannerNode has one input."); 30 testPassed("PannerNode has one input.");
30 else 31 else
31 testFailed("PannerNode should have one input."); 32 testFailed("PannerNode should have one input.");
32 33
33 if (panner.numberOfOutputs === 1) 34 if (panner.numberOfOutputs === 1)
34 testPassed("PannerNode has one output."); 35 testPassed("PannerNode has one output.");
35 else 36 else
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 197
197 finishJSTest(); 198 finishJSTest();
198 } 199 }
199 200
200 runTest(); 201 runTest();
201 202
202 </script> 203 </script>
203 204
204 </body> 205 </body>
205 </html> 206 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/panner-loop.html ('k') | LayoutTests/webaudio/realtimeanalyser-fft-scaling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698