4 <script src=
"../resources/js-test.js"></script>
5 <script src=
"resources/compatibility.js"></script>
9 description("Check that the AudioContext constructor throws when the limit on hardware contexts is reached.");
11 function reachHardwareContextsLimit() {
13 for (var i
=0; i
<10; ++i
)
14 context
[i
] = new AudioContext();
17 shouldThrow("reachHardwareContextsLimit()");