5 <title>GPU Feature Testing: WebGL Multisampling
</title>
8 var canvas
= document
.createElement("canvas");
12 var attrib
= { antialias
: true }; // It is the default setting.
14 context
= canvas
.getContext("webgl", attrib
);
18 context
= canvas
.getContext("experimental-webgl", attrib
);
28 attrib
= gl
.getContextAttributes();
29 domAutomationController
.setAutomationId(1);
30 if (gl
&& attrib
&& attrib
.antialias
)
31 domAutomationController
.send("TRUE");
33 domAutomationController
.send("FALSE");
37 <body onload=
"runTest()">
38 WebGL should use multisampling if it is allowed.