t-utils.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>

<script>
"use strict";
description("Tests texture uploads with ArrayBufferView+offsets");

var wtu = WebGLTestUtils;
var gl = wtu.create3DContext(null, undefined, 2);
console.log(gl.getParameter(gl.VERSION));

////

function arrToStr(arr) {
  return "[" + arr.map(x => x.toString()).join(", ") + "]";
}

function shouldBeWas(shouldBe, was, info) {
  var text = "Should be " + shouldBe + ", was " + was + ".";
  if (info)