7 testRunner
.waitUntilDone();
9 gl
= document
.getElementById('canvas').getContext("webgl");
11 alert("No WebGL context found");
15 gl
.enable(gl
.SCISSOR_TEST
);
16 gl
.clearColor(1, 0, 0, 1);
17 gl
.clear(gl
.COLOR_BUFFER_BIT
);
21 <body onload='runTest()'
>
22 Right click red square and save image. A red square image should be saved.
<br>
23 <canvas id='canvas'
width=
"100" height=
"100"></canvas>