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

Side by Side Diff: LayoutTests/webaudio/audiochannelmerger-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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="../resources/js-test.js"></script> 5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 7 <script src="resources/audio-testing.js"></script>
7 </head> 8 </head>
8 9
9 <body> 10 <body>
10 11
11 <div id="description"></div> 12 <div id="description"></div>
12 <div id="console"></div> 13 <div id="console"></div>
13 14
14 <script> 15 <script>
15 description("Basic tests for AudioChannelMerger."); 16 description("Basic tests for AudioChannelMerger.");
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 var context = new webkitAudioContext(); 26 var context = new AudioContext();
26 27
27 try { 28 try {
28 var mergernode = context.createChannelMerger(0); 29 var mergernode = context.createChannelMerger(0);
29 testFailed("Exception should be thrown for numberOfInputs <= 0."); 30 testFailed("Exception should be thrown for numberOfInputs <= 0.");
30 } catch(e) { 31 } catch(e) {
31 testPassed("Exception was thrown for numberOfInputs <= 0."); 32 testPassed("Exception was thrown for numberOfInputs <= 0.");
32 } 33 }
33 34
34 try { 35 try {
35 var mergernode = context.createChannelMerger(33); 36 var mergernode = context.createChannelMerger(33);
(...skipping 22 matching lines...) Expand all
58 59
59 finishJSTest(); 60 finishJSTest();
60 } 61 }
61 62
62 runTest(); 63 runTest();
63 64
64 </script> 65 </script>
65 66
66 </body> 67 </body>
67 </html> 68 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/audiobuffersource-start.html ('k') | LayoutTests/webaudio/audiochannelmerger-stereo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698