blob: cb57c74e7f1d0795b16be0f73c5eda5723a4ca7b [file] [log] [blame]
CONSOLE MESSAGE: WebGL: context lost.
CONSOLE MESSAGE: WebGL: context lost.
CONSOLE MESSAGE: WebGL: context lost.
CONSOLE MESSAGE: WebGL: 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