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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1)"); | 127 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1)"); |
128 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 6, context.UNSIGNED_SHORT, 2)"); | 128 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T
RIANGLES, 6, context.UNSIGNED_SHORT, 2)"); |
129 | 129 |
130 // invalid operation if no buffer is bound to ELEMENT_ARRAY_BUFFER | 130 // invalid operation if no buffer is bound to ELEMENT_ARRAY_BUFFER |
131 context.bindBuffer(context.ELEMENT_ARRAY_BUFFER, null); | 131 context.bindBuffer(context.ELEMENT_ARRAY_BUFFER, null); |
132 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 0)"); | 132 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements(
context.TRIANGLES, 6, context.UNSIGNED_SHORT, 0)"); |
133 | 133 |
134 debug("") | 134 debug("") |
135 </script> | 135 </script> |
136 | 136 |
137 <script src="../../js/resources/js-test-post.js"></script> | |
138 </body> | 137 </body> |
139 </html> | 138 </html> |
OLD | NEW |