OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../fast/js/resources/js-test-pre.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 description("Check that the AudioContext constructor throws when the limit on ha rdware contexts is reached."); | |
9 | |
10 function reachHardwareContextsLimit() { | |
11 var context = []; | |
12 for (var i=0; i<10; ++i) { | |
13 context[i] = new webkitAudioContext(); | |
14 // Trigger lazy initialization. | |
15 context[i].createBufferSource(); | |
16 } | |
17 } | |
18 | |
19 shouldThrow("reachHardwareContextsLimit()"); | |
Ken Russell (switch to Gerrit)
2013/10/11 19:19:01
Is this test really viable? What if the implementa
Inactive
2013/10/11 19:29:49
This is currently hardcoded in Blink so this is no
| |
20 </script> | |
21 <script src="../fast/js/resources/js-test-post.js"></script> | |
22 </body> | |
23 </html> | |
OLD | NEW |