TexSubImage3D(gl.TEXTURE_2D_ARRAY, 0, 0, 0, 0, 4, 4, 1, compressedFormat,
                               view, viewOffset, compressedByteCount);
  };

  ////

  var testFunc = function(funcName, fnToTest) {
    debug("");
    debug(funcName);

    if (!probeWithBadOffset(fnToTest, funcName))
      return;

    var viewLength = view.length;
    var subViewLength = compressedByteCount;

    for (var i = 0; i <= viewLength+1; i++) {
      debug("offset=" + i);

      fnToTest(i);
      var effectiveViewLen = v