| 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 23 matching lines...) Expand all Loading... |
| 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 indices[0] = 2; | 35 indices[0] = 2; |
| 36 indices[5] = 1; | 36 indices[5] = 1; |
| 37 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 2)"); | 37 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 2)"); |
| 38 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 0)"); | 38 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 0)"); |
| 39 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 4)"); | 39 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 4)"); |
| 40 | 40 |
| 41 debug("") | 41 debug("") |
| 42 </script> | 42 </script> |
| 43 | 43 |
| 44 <script src="../../js/resources/js-test-post.js"></script> | |
| 45 </body> | 44 </body> |
| 46 </html> | 45 </html> |
| OLD | NEW |