no errors from setup.");

function runTest() {
  var ctx = document.createElement('canvas').getContext("2d");
  var maxTexSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
  var width = Math.ceil(Math.sqrt(maxTexSize));
  var height = width;
  var depth = width + 1;
  ctx.canvas.width = width;
  // Set canvas height to a value larger than MAX_TEXTURE_SIZE.
  // This triggers a validation bug in Chrome.
  ctx.canvas.height = height * depth;

  var tex = gl.createTexture();
  gl.bindTexture(gl.TEXTURE_2D_ARRAY, te