blob: 256f237a4ec003a11b2ba9c330bceb4e453a35f4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test.js"></script>
<script src="resources/compatibility.js"></script>
</head>
<body>
<script>
description("Check that the AudioContext constructor throws when the limit on hardware contexts is reached.");
function reachHardwareContextsLimit() {
var context = [];
for (var i=0; i<10; ++i)
context[i] = new AudioContext();
}
shouldThrow("reachHardwareContextsLimit()");
</script>
</body>
</html>