| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> | 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 <script src="resources/webgl-test.js"></script> | 5 <script src="resources/webgl-test.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <div id="description"></div> | 8 <div id="description"></div> |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 shouldGenerateGLError(context, context.INVALID_VALUE, "context.drawElements(cont
ext.TRIANGLES, 0xffffffff, context.UNSIGNED_SHORT, 0)"); | 118 shouldGenerateGLError(context, context.INVALID_VALUE, "context.drawElements(cont
ext.TRIANGLES, 0xffffffff, context.UNSIGNED_SHORT, 0)"); |
| 119 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 0x7fffffff, context.UNSIGNED_SHORT, 0)"); | 119 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 0x7fffffff, context.UNSIGNED_SHORT, 0)"); |
| 120 | 120 |
| 121 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 0, context.UNSIGNED_SHORT, 0)"); | 121 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 0, context.UNSIGNED_SHORT, 0)"); |
| 122 | 122 |
| 123 // invalid operation with offset that's not a multiple of the type size | 123 // invalid operation with offset that's not a multiple of the type size |
| 124 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 6, context.UNSIGNED_SHORT, 0)"); | 124 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 6, context.UNSIGNED_SHORT, 0)"); |
| 125 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1)"); | 125 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1)"); |
| 126 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 6, context.UNSIGNED_SHORT, 2)"); | 126 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 6, context.UNSIGNED_SHORT, 2)"); |
| 127 | 127 |
| 128 // invalid operation if no buffer is bound to ELEMENT_ARRAY_BUFFER |
| 129 context.bindBuffer(context.ELEMENT_ARRAY_BUFFER, null); |
| 130 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 0)"); |
| 131 |
| 128 debug("") | 132 debug("") |
| 129 successfullyParsed = true; | 133 successfullyParsed = true; |
| 130 </script> | 134 </script> |
| 131 | 135 |
| 132 <script src="../../js/resources/js-test-post.js"></script> | 136 <script src="../../js/resources/js-test-post.js"></script> |
| 133 </body> | 137 </body> |
| 134 </html> | 138 </html> |
| OLD | NEW |