blob: 3116716ab8f85b50d4bb7ac670c64c49f0c68f5a [file] [log] [blame]
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
let c = document.createElement("canvas");
let gl = c.getContext("webgl2");
let vs = gl.createShader(gl.VERTEX_SHADER);
gl.shaderSource(vs, "#version 300 es\nvoid main(){vec2 S[1];S;}");
gl.compileShader(vs);
if (!gl.getShaderParameter(vs, gl.COMPILE_STATUS) ) {
let info = gl.getShaderInfoLog(vs);
throw 'Could not compile WebGL program. Info:' + info;
}
document.body.innerHTML += "PASS, no crash."
</script>
</body>