haikuwebkit/LayoutTests/fast/canvas/webgl/index-validation-verifies-t...

14 lines
614 B
Plaintext

Tests that index validation for drawElements does not examine too many indices
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test out of range indices
PASS context.drawElements(context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 2) generated expected GL error: NO_ERROR.
PASS context.drawElements(context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 0) generated expected GL error: INVALID_OPERATION.
PASS context.drawElements(context.TRIANGLE_STRIP, 4, context.UNSIGNED_SHORT, 4) generated expected GL error: INVALID_OPERATION.
PASS successfullyParsed is true
TEST COMPLETE