blob: 40cb437ee2d95ffb6e3c650fa0fd20a900a1db2f [file] [log] [blame]
Test compilation of shaders after being attached to a program, with and without syntax errors.
== Running test suite: Canvas.getShaderSource
-- Running test case: Canvas.requestShaderSource.vertexShader
void main(void) {
gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
}
-- Running test case: Canvas.requestShaderSource.fragmentShader
precision mediump float;
void main(void) {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
-- Running test case: Canvas.requestShaderSource.invalidProgramId
PASS: Should produce an error.
Error: No shader program for given identifier.
-- Running test case: Canvas.requestShaderSource.invalidShaderType
PASS: Should produce an error.
Error: No shader for given type.