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

Side by Side Diff: LayoutTests/webaudio/distance-linear.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
« no previous file with comments | « LayoutTests/webaudio/distance-inverse.html ('k') | LayoutTests/webaudio/dom-exceptions.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <script src="resources/distance-model-testing.js"></script> 7 <script src="resources/distance-model-testing.js"></script>
7 </head> 8 </head>
8 9
9 <body> 10 <body>
10 <div id="description"></div> 11 <div id="description"></div>
11 <div id="console"></div> 12 <div id="console"></div>
12 13
13 <script> 14 <script>
14 description("Test linear distance model of AudioPannerNode."); 15 description("Test linear distance model of AudioPannerNode.");
15 16
16 function runTest() { 17 function runTest() {
17 if (window.testRunner) { 18 if (window.testRunner) {
18 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
19 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
20 } 21 }
21 22
22 window.jsTestIsAsync = true; 23 window.jsTestIsAsync = true;
23 24
24 // Create offline audio context. 25 // Create offline audio context.
25 context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSe conds, sampleRate); 26 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
26 27
27 // Create temp panner to get LINEAR_DISTANCE value for testing. 28 // Create temp panner to get LINEAR_DISTANCE value for testing.
28 var pannerModel = context.createPanner(); 29 var pannerModel = context.createPanner();
29 createTestAndRun(context, pannerModel.LINEAR_DISTANCE, 0); 30 createTestAndRun(context, pannerModel.LINEAR_DISTANCE, 0);
30 } 31 }
31 32
32 runTest(); 33 runTest();
33 successfullyParsed = true; 34 successfullyParsed = true;
34 35
35 </script> 36 </script>
36 37
37 </body> 38 </body>
38 </html> 39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/distance-inverse.html ('k') | LayoutTests/webaudio/dom-exceptions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698