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

Side by Side Diff: LayoutTests/webaudio/audiocontext-max-contexts.html

Issue 297313003: Initialize AudioContext on constructor to increase currentTime in real-time. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove layout test Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioContext.h » ('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 <script src="resources/compatibility.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 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.");
10 10
11 function reachHardwareContextsLimit() { 11 function reachHardwareContextsLimit() {
12 var context = []; 12 var context = [];
13 for (var i=0; i<10; ++i) { 13 for (var i=0; i<10; ++i)
14 context[i] = new AudioContext(); 14 context[i] = new AudioContext();
15 // Trigger lazy initialization.
16 context[i].createBufferSource();
17 }
18 } 15 }
19 16
20 shouldThrow("reachHardwareContextsLimit()"); 17 shouldThrow("reachHardwareContextsLimit()");
21 </script> 18 </script>
22 </body> 19 </body>
23 </html> 20 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698