     wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION);
      }
    }
  }

  var fn2D = function(format, type, view, viewOffset) {
    gl.texImage2D(gl.TEXTURE_2D, 0, format, 1, 1, 0, format, type, view, viewOffset);
  }

  var fnSub2D = function(format, type, view, viewOffset) {
    gl.texImage2D(gl.TEXTURE_2D, 0, format, 1, 1, 0, format, type, null);
    gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 1, 1, format, type, view, viewOffset);
  }

  var fn3D = function(format, type, view, viewOffset) {
    gl.texImage3