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

Side by Side Diff: LayoutTests/webaudio/audiobuffersource-start.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/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
6 <script src="resources/audiobuffersource-testing.js"></script> 7 <script src="resources/audiobuffersource-testing.js"></script>
7 <script src="../resources/js-test.js"></script> 8 <script src="../resources/js-test.js"></script>
8 </head> 9 </head>
9 10
10 <body> 11 <body>
11 12
12 <div id="description"></div> 13 <div id="description"></div>
13 <div id="console"></div> 14 <div id="console"></div>
14 15
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 73
73 function runTest() { 74 function runTest() {
74 if (window.testRunner) { 75 if (window.testRunner) {
75 testRunner.dumpAsText(); 76 testRunner.dumpAsText();
76 testRunner.waitUntilDone(); 77 testRunner.waitUntilDone();
77 } 78 }
78 79
79 window.jsTestIsAsync = true; 80 window.jsTestIsAsync = true;
80 81
81 // Create offline audio context. 82 // Create offline audio context.
82 var context = new webkitOfflineAudioContext(1, totalRenderLengthFrames, samp leRate); 83 var context = new OfflineAudioContext(1, totalRenderLengthFrames, sampleRate );
83 buffer = createTestBuffer(context, bufferFrameLength); 84 buffer = createTestBuffer(context, bufferFrameLength);
84 85
85 for (var i = 0; i < tests.length; ++i) 86 for (var i = 0; i < tests.length; ++i)
86 runLoopTest(context, i, tests[i]); 87 runLoopTest(context, i, tests[i]);
87 88
88 context.oncomplete = checkAllTests; 89 context.oncomplete = checkAllTests;
89 context.startRendering(); 90 context.startRendering();
90 } 91 }
91 92
92 runTest(); 93 runTest();
93 successfullyParsed = true; 94 successfullyParsed = true;
94 95
95 </script> 96 </script>
96 97
97 </body> 98 </body>
98 </html> 99 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/audiobuffersource-playbackrate.html ('k') | LayoutTests/webaudio/audiochannelmerger-basic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698