| 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 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div id="description"></div> | 7 <div id="description"></div> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 debug("Test out of range indices") | 29 debug("Test out of range indices") |
| 30 context.bindBuffer(context.ELEMENT_ARRAY_BUFFER, indexObject); | 30 context.bindBuffer(context.ELEMENT_ARRAY_BUFFER, indexObject); |
| 31 context.bufferData(context.ELEMENT_ARRAY_BUFFER, new Uint16Array([ 10000, 0, 1,
2, 3, 10000 ]), context.STATIC_DRAW); | 31 context.bufferData(context.ELEMENT_ARRAY_BUFFER, new Uint16Array([ 10000, 0, 1,
2, 3, 10000 ]), context.STATIC_DRAW); |
| 32 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 2)"); | 32 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 2)"); |
| 33 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 0)"); | 33 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 0)"); |
| 34 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 4)"); | 34 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 4)"); |
| 35 | 35 |
| 36 debug("") | 36 debug("") |
| 37 </script> | 37 </script> |
| 38 | 38 |
| 39 <script src="../../js/resources/js-test-post.js"></script> | |
| 40 </body> | 39 </body> |
| 41 </html> | 40 </html> |
| OLD | NEW |