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

Side by Side Diff: LayoutTests/webaudio/audiobuffersource-loop-comprehensive.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/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
6 <script src="resources/compatibility.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
15 <script> 16 <script>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 function runTest() { 91 function runTest() {
91 if (window.testRunner) { 92 if (window.testRunner) {
92 testRunner.dumpAsText(); 93 testRunner.dumpAsText();
93 testRunner.waitUntilDone(); 94 testRunner.waitUntilDone();
94 } 95 }
95 96
96 window.jsTestIsAsync = true; 97 window.jsTestIsAsync = true;
97 98
98 // Create offline audio context. 99 // Create offline audio context.
99 var context = new webkitOfflineAudioContext(1, totalRenderLengthFrames, samp leRate); 100 var context = new OfflineAudioContext(1, totalRenderLengthFrames, sampleRate );
100 buffer = createTestBuffer(context, bufferFrameLength); 101 buffer = createTestBuffer(context, bufferFrameLength);
101 102
102 for (var i = 0; i < tests.length; ++i) 103 for (var i = 0; i < tests.length; ++i)
103 runLoopTest(context, i, tests[i]); 104 runLoopTest(context, i, tests[i]);
104 105
105 context.oncomplete = checkAllTests; 106 context.oncomplete = checkAllTests;
106 context.startRendering(); 107 context.startRendering();
107 } 108 }
108 109
109 runTest(); 110 runTest();
110 successfullyParsed = true; 111 successfullyParsed = true;
111 112
112 </script> 113 </script>
113 114
114 </body> 115 </body>
115 </html> 116 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/audiobuffersource-ended.html ('k') | LayoutTests/webaudio/audiobuffersource-loop-points.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698