| Test of drawArrays with out-of-bounds parameters |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| Test empty buffer |
| PASS context.drawArrays(context.TRIANGLES, 0, 1) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, 10000) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, 10000000000000) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, -1) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 1, 0) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(context.TRIANGLES, -1, 0) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 0, 0) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(context.TRIANGLES, 100, 0) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(context.TRIANGLES, 1, -1) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, -1, 1) generated expected GL error: INVALID_VALUE. |
| |
| Test buffer with 3 float vectors |
| PASS context.drawArrays(context.TRIANGLES, 0, 3) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(0x0009, 0, 3) generated expected GL error: INVALID_ENUM. |
| PASS context.drawArrays(context.TRIANGLES, 3, 2) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, 10000) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, 10000000000000) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, -1) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, -1, 0) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 0, 0) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(context.TRIANGLES, 100, 0) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(context.TRIANGLES, 1, -1) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, -1, 1) generated expected GL error: INVALID_VALUE. |
| |
| Test buffer with interleaved (3+2) float vectors |
| PASS context.drawArrays(context.TRIANGLES, 0, 9) generated expected GL error: NO_ERROR. |
| PASS context.drawArrays(context.TRIANGLES, 0, -500) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, -200, 1) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, -200, -500) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 0, 0xffffffff) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 0xffffffff, 1) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 0xffffffff, 0xffffffff) generated expected GL error: INVALID_VALUE. |
| PASS context.drawArrays(context.TRIANGLES, 0, 200) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0, 0x7fffffff) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0x7fffffff, 1) generated expected GL error: INVALID_OPERATION. |
| PASS context.drawArrays(context.TRIANGLES, 0x7fffffff, 0x7fffffff) generated expected GL error: INVALID_OPERATION. |
| |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |