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 src="resources/webgl-test-utils.js"></script> | 5 <script src="resources/webgl-test-utils.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <canvas id="testbed" width="16" height="16"></canvas> | 8 <canvas id="testbed" width="16" height="16"></canvas> |
9 <canvas id="c" width="16" height="16"></canvas> | 9 <canvas id="c" width="16" height="16"></canvas> |
10 <div id="description"></div> | 10 <div id="description"></div> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 glErrorShouldBe(gl, gl.INVALID_OPERATION, "type not same as original RGB"); | 57 glErrorShouldBe(gl, gl.INVALID_OPERATION, "type not same as original RGB"); |
58 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_SHORT_4_4_4_4, c); | 58 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_SHORT_4_4_4_4, c); |
59 glErrorShouldBe(gl, gl.NO_ERROR, "make texture RGBA 4_4_4_4"); | 59 glErrorShouldBe(gl, gl.NO_ERROR, "make texture RGBA 4_4_4_4"); |
60 gl.texSubImage2D(gl.TEXTURE_2D, 0, 0,0, gl.RGBA, gl.UNSIGNED_SHORT_4_4_4_4, c); | 60 gl.texSubImage2D(gl.TEXTURE_2D, 0, 0,0, gl.RGBA, gl.UNSIGNED_SHORT_4_4_4_4, c); |
61 glErrorShouldBe(gl, gl.NO_ERROR, "format same as original RGBA 4_4_4_4"); | 61 glErrorShouldBe(gl, gl.NO_ERROR, "format same as original RGBA 4_4_4_4"); |
62 gl.texSubImage2D(gl.TEXTURE_2D, 0, 0,0, gl.RGB, gl.UNSIGNED_BYTE, c); | 62 gl.texSubImage2D(gl.TEXTURE_2D, 0, 0,0, gl.RGB, gl.UNSIGNED_BYTE, c); |
63 glErrorShouldBe(gl, gl.INVALID_OPERATION, "format not same as original RGBA 4_4_
4_4"); | 63 glErrorShouldBe(gl, gl.INVALID_OPERATION, "format not same as original RGBA 4_4_
4_4"); |
64 gl.texSubImage2D(gl.TEXTURE_2D, 0, 0,0, gl.RGBA, gl.UNSIGNED_BYTE, c); | 64 gl.texSubImage2D(gl.TEXTURE_2D, 0, 0,0, gl.RGBA, gl.UNSIGNED_BYTE, c); |
65 glErrorShouldBe(gl, gl.INVALID_OPERATION, "type not same as original RGBA 4_4_4_
4"); | 65 glErrorShouldBe(gl, gl.INVALID_OPERATION, "type not same as original RGBA 4_4_4_
4"); |
66 </script> | 66 </script> |
67 <script src="../../js/resources/js-test-post.js"></script> | |
68 </body> | 67 </body> |
69 </html> | 68 </html> |
OLD | NEW |