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 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
6 <script src="resources/webgl-test.js"></script> | 6 <script src="resources/webgl-test.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <div id="description"></div> | 9 <div id="description"></div> |
10 <div id="console"></div> | 10 <div id="console"></div> |
11 | 11 |
12 <script> | 12 <script> |
13 description("Tests that index validation verifies the correct number of indices"
); | 13 description("Tests that index validation verifies the correct number of indices"
); |
14 | 14 |
15 if (window.internals) | 15 if (window.internals) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 debug("Pass large negative index to vertexAttribPointer"); | 104 debug("Pass large negative index to vertexAttribPointer"); |
105 gl.vertexAttribPointer(normalLoc, 3, gl.FLOAT, false, 7 * sizeInBytes(gl.FLOAT),
-2000000000 * sizeInBytes(gl.FLOAT)); | 105 gl.vertexAttribPointer(normalLoc, 3, gl.FLOAT, false, 7 * sizeInBytes(gl.FLOAT),
-2000000000 * sizeInBytes(gl.FLOAT)); |
106 glErrorShouldBe(gl, gl.INVALID_VALUE); | 106 glErrorShouldBe(gl, gl.INVALID_VALUE); |
107 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); | 107 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); |
108 | 108 |
109 successfullyParsed = true; | 109 successfullyParsed = true; |
110 </script> | 110 </script> |
111 | 111 |
112 </body> | 112 </body> |
113 </html> | 113 </html> |
OLD | NEW |