aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/test_webgl_context_get_parameter.html
blob: 06da07f607ceb290933de39656d08c347542a745 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<!doctype html>
<meta charset="utf-8">
<title>WebGLRenderingContext getParameter test</title>
<script>
  var gl = document.createElement("canvas").getContext("webgl");

  if ( typeof gl.getParameter !== "function" )
      console.error("getParameter should be a function");

  if ( gl.getParameter(gl.VERSION).indexOf("WebGL 1.0") !== 0 )
      console.error("getParameter(VERSION) should return a string beginning with \"WebGL 1.0\"");
</script>