blob: 0c45e5979ad8ed46aed76a3f6c0d6c3b5fe326dd [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.internals)
window.internals.settings.setWebGLErrorsToConsoleEnabled(false);
function runTest() {
var canvas = document.getElementById("myCanvas");
var gl = canvas.getContext("webgl");
var vertexShader = gl.createShader(gl.VERTEX_SHADER);
gl.shaderSource(vertexShader, "void main() { vec4 x; vec4 y = vec4(1.0+x.,1.0,0.0,1.0); }");
gl.compileShader(vertexShader);
document.getElementById("result").innerText = "PASS: This test did not assert because of this expected syntax error:\n" + gl.getShaderInfoLog(vertexShader);
}
</script>
</head>
<body onload="runTest()">
<canvas id="myCanvas"></canvas>
<div id="result">FAIL: Test did not run</div>
</body>
</html>