[ 0, 255, 0, 255 ]);

// -

debug('\nResize twice then render.');
gl.canvas.width = gl.canvas.height = LARGE;
gl.canvas.width = gl.canvas.height = SMALL;

gl.clear(gl.COLOR_BUFFER_BIT);
wtu.drawUnitQuad(gl);

wtu.checkCanvasRect(gl, 0, 0, 1, 1, [ 0, 255, 0, 255 ]);

debug('\nCause a GL error, then resize and render.');
gl.depthFunc(0); // Causes INVALID_ENUM
gl.canvas.width = gl.canvas.height = LARGE;
gl.clear(gl.COLOR_BUFFER_BIT);
gl.canvas.width = gl.canvas.height = SMALL;

gl.clear(gl.COLOR_BUFFER_BIT);
