This test verifies the functionality of the WEBGL_debug_shaders extension, if it is available.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
TEST COMPLETE: 32 PASS, 0 FAIL
PASS WebGL context exists
PASS Successfully enabled WEBGL_debug_shaders extension
PASS WEBGL_debug_shaders listed as supported and getExtension succeeded
Testing function with extension enabled
pass:1
PASS ext.getTranslatedShaderSource(shader) is ""
PASS ext.getTranslatedShaderSource(shader) is ""
PASS gl.getShaderParameter(shader, gl.COMPILE_STATUS) is true
PASS getError was expected value: NO_ERROR : No gl error should occur
PASS Successfully called getTranslatedShaderSource()
PASS ext.getTranslatedShaderSource(shader) is ""
PASS ext.getTranslatedShaderSource(shader) is ""
PASS gl.getShaderParameter(shader, gl.COMPILE_STATUS) is true
PASS getError was expected value: NO_ERROR : No gl error should occur
PASS Successfully called getTranslatedShaderSource()
PASS gl.getProgramParameter(program, gl.LINK_STATUS) is true
pass:2
PASS ext.getTranslatedShaderSource(shader) is ""
PASS ext.getTranslatedShaderSource(shader) is ""
PASS gl.getShaderParameter(shader, gl.COMPILE_STATUS) is true
PASS getError was expected value: NO_ERROR : No gl error should occur
PASS Successfully called getTranslatedShaderSource()
PASS ext.getTranslatedShaderSource(shader) is ""
PASS ext.getTranslatedShaderSource(shader) is ""
PASS gl.getShaderParameter(shader, gl.COMPILE_STATUS) is true
PASS getError was expected value: NO_ERROR : No gl error should occur
PASS Successfully called getTranslatedShaderSource()
PASS gl.getProgramParameter(program, gl.LINK_STATUS) is true
test changing source
PASS gl.getShaderParameter(shader, gl.COMPILE_STATUS) is true
PASS ext.getTranslatedShaderSource(null) threw exception TypeError: Failed to execute 'getTranslatedShaderSource' on 'WebGLDebugShaders': parameter 1 is not of type 'WebGLShader'..
PASS translatedSource && translatedSource.indexOf("gl_FragCoord") >= 0 is true
PASS newTranslatedSource is translatedSource
PASS gl.getShaderParameter(shader, gl.COMPILE_STATUS) is true
PASS newTranslatedSource is not translatedSource
PASS successfullyParsed is true
TEST COMPLETE