| <div id="result">PASS if this test did not crash and 1000th context was null.</div> |
| <script> |
| if (window.testRunner) { |
| testRunner.waitUntilDone(); |
| testRunner.dumpAsText(); |
| var size = 1000; |
| var canvii = new Array(); |
| for (var i = 0; i < size; i++) { |
| canvii[i] = document.createElement("canvas"); |
| canvii[i].width = 1; |
| canvii[i].height = 1; |
| var context = canvii[i].getContext("webgl", null); |
| } |
| if (canvii[1000] != null) |
| document.getElementById("result").innerHTML = "FAIL"; |
| testRunner.notifyDone(); |
| } |
| </script> |