haikuwebkit/LayoutTests/fast/canvas/webgl/lose-context-on-status-fail...

76 lines
2.4 KiB
Plaintext

CONSOLE MESSAGE: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
CONSOLE MESSAGE: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
CONSOLE MESSAGE: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
CONSOLE MESSAGE: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
Checks that a GPU status check failure will lose the context.
NOTE: This only passes in the test harness because it requires Internals.
Test drawArrays.
Do five 'safe' drawArrays.
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
Now force failure after the next drawArrays.
PASS gl.isContextLost() is true
PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
Test drawElements.
Do two 'safe' drawElements.
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
Now force failure after the next drawElements.
PASS gl.isContextLost() is true
PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
Test drawArraysInstanced.
Do four 'safe' drawArraysInstancedANGLE.
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
Now force failure after the next drawArraysInstancedANGLE.
PASS gl.isContextLost() is true
PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
Test drawElementsInstanced.
Do seven 'safe' drawElementsInstancedANGLE.
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
PASS gl.isContextLost() is false
PASS gl.getError() is gl.NO_ERROR
Now force failure after the next drawElementsInstancedANGLE.
PASS gl.isContextLost() is true
PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
PASS successfullyParsed is true
TEST COMPLETE