| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <script src="resources/webgl-test.js"></script> | 4 <script src="resources/webgl-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function runTest(gl, width, height) | 6 function runTest(gl, width, height) |
| 7 { | 7 { |
| 8 | 8 |
| 9 debug('Test whether the WebGL internal buffers have been initialized to 0.')
; | 9 debug('Test whether the WebGL internal buffers have been initialized to 0.')
; |
| 10 var totalBytes = width * height * 4; | 10 var totalBytes = width * height * 4; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 canvas.width += 1; | 72 canvas.width += 1; |
| 73 canvas.height += 1; | 73 canvas.height += 1; |
| 74 runTest(gl, canvas.width, canvas.height); | 74 runTest(gl, canvas.width, canvas.height); |
| 75 | 75 |
| 76 // Testing buffer clearing won't change the clear values. | 76 // Testing buffer clearing won't change the clear values. |
| 77 var clearColor = gl.getParameter(gl.COLOR_CLEAR_VALUE); | 77 var clearColor = gl.getParameter(gl.COLOR_CLEAR_VALUE); |
| 78 shouldBe("clearColor", "[1, 0, 0, 1]"); | 78 shouldBe("clearColor", "[1, 0, 0, 1]"); |
| 79 } else | 79 } else |
| 80 testFailed('canvas.getContext() failed'); | 80 testFailed('canvas.getContext() failed'); |
| 81 </script> | 81 </script> |
| 82 <script src="../../js/resources/js-test-post.js"></script> | |
| 83 </body> | 82 </body> |
| 84 </html> | 83 </html> |
| OLD | NEW |