BE
};

function expectedByteLength(width, height, format) {
  if (format == validFormats.COMPRESSED_RED_RGTC1_EXT || format == validFormats.COMPRESSED_SIGNED_RED_RGTC1_EXT) {
    return Math.ceil(width / 4) * Math.ceil(height / 4) * 8;
  }
  else {
    return Math.ceil(width / 4) * Math.ceil(height / 4) * 16;
  }
}

function getBlockDimensions(format) {
  return {width: 4, height: 4};
}

var wtu = WebGLTestUtils;
var ctu = CompressedTextureUtils;
var contextVersion = wtu.getDefault3DContextVersion();
var gl