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

Side by Side Diff: LayoutTests/webaudio/audiocontext-max-contexts.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/audiochannelsplitter.html ('k') | LayoutTests/webaudio/audionode.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> 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 </head> 6 </head>
6 <body> 7 <body>
7 <script> 8 <script>
8 description("Check that the AudioContext constructor throws when the limit on ha rdware contexts is reached."); 9 description("Check that the AudioContext constructor throws when the limit on ha rdware contexts is reached.");
9 10
10 function reachHardwareContextsLimit() { 11 function reachHardwareContextsLimit() {
11 var context = []; 12 var context = [];
12 for (var i=0; i<10; ++i) { 13 for (var i=0; i<10; ++i) {
13 context[i] = new webkitAudioContext(); 14 context[i] = new AudioContext();
14 // Trigger lazy initialization. 15 // Trigger lazy initialization.
15 context[i].createBufferSource(); 16 context[i].createBufferSource();
16 } 17 }
17 } 18 }
18 19
19 shouldThrow("reachHardwareContextsLimit()"); 20 shouldThrow("reachHardwareContextsLimit()");
20 </script> 21 </script>
21 </body> 22 </body>
22 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/audiochannelsplitter.html ('k') | LayoutTests/webaudio/audionode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698