| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>Zero Size Canvas Test</title> | 5 <title>Zero Size Canvas Test</title> |
| 6 <script src="../../js/resources/js-test-pre.js"></script> | 6 <script src="../../js/resources/js-test-pre.js"></script> |
| 7 <script src="resources/webgl-test.js"> </script> | 7 <script src="resources/webgl-test.js"> </script> |
| 8 <script src="resources/webgl-test-utils.js"> </script> | 8 <script src="resources/webgl-test-utils.js"> </script> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 shouldBeTrue("program != null"); | 22 shouldBeTrue("program != null"); |
| 23 var tex = gl.createTexture(); | 23 var tex = gl.createTexture(); |
| 24 gl.bindTexture(gl.TEXTURE_2D, tex); | 24 gl.bindTexture(gl.TEXTURE_2D, tex); |
| 25 var pixel = new Uint8Array([0, 255, 0, 255]); | 25 var pixel = new Uint8Array([0, 255, 0, 255]); |
| 26 gl.texImage2D( | 26 gl.texImage2D( |
| 27 gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, pixel); | 27 gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, pixel); |
| 28 wtu.drawQuad(gl); | 28 wtu.drawQuad(gl); |
| 29 | 29 |
| 30 glErrorShouldBe(gl, gl.NO_ERROR, "Should be no errors from setup."); | 30 glErrorShouldBe(gl, gl.NO_ERROR, "Should be no errors from setup."); |
| 31 </script> | 31 </script> |
| 32 <script src="../../js/resources/js-test-post.js"></script> | |
| 33 | 32 |
| 34 </body> | 33 </body> |
| 35 </html> | 34 </html> |
| OLD | NEW |