sRGBA = function(gl) {
  gl.clearColor(1, 0, 1, 0);
  gl.clear(gl.COLOR_BUFFER_BIT);
  var id = new Uint8Array(4);
  gl.readPixels(1,2,1,1,gl.RGBA, gl.UNSIGNED_BYTE, id);
  assertArrayEquals([255, 0, 255, 0], id);
}

Tests.endUnit = function(gl) {
}

</script>
<style>canvas{ position:absolute; }</style>
</head><body>
<canvas id="gl" width="16" height="16"></canvas>
</body></html>
