3 <script type=
"text/javascript">
5 var canvas
= document
.getElementById("canvas1");
8 var gl
= canvas
.getContext("experimental-webgl");
10 gl
= canvas
.getContext("webgl");
13 var extension
= gl
.getExtension("WEBGL_debug_renderer_info") != null;
15 var query
= /query=(.*)/.exec(window
.location
.href
);
18 if (query
[1] != "enabled" && query
[1] != "disabled" &&
19 query
[1] != "bypassed")
21 var enabled
= query
[1] == "enabled";
22 return extension
== enabled
;
27 window
.domAutomationController
.send("SUCCESS");
29 window
.domAutomationController
.send("FAILURE");
33 <body onload=
"onLoad()">
34 <canvas id=
"canvas1" width=
"16px" height=
"16px">