blob: 9e10bab1a0e2981c95e4526a7bb36ff9d5355f10 [file] [log] [blame]
<script>
// Tests that we log a warning to the console once we attempt to create a context and we passed the limit.
if (window.testRunner)
testRunner.dumpAsText();
var maxNumberOfActiveContexts = 16;
var contexts = [];
for (var i = 0; i <= maxNumberOfActiveContexts; i++)
contexts[i] = document.createElement("canvas").getContext("webgl");
</script>