Added test to check for the proper prototype chain
Switched test to use standardized Object.getPrototypeOf()
Merge pull request #508 from toji/proto_test

Added test to check for the proper prototype chain
Add out-of-bounds tests for ANGLE_instanced_arrays extension

This is achieved by refactoring existing draw out of bounds tests to
resources/out-of-bounds-test.js so that they can be used both by regular
draw functions and their instanced variants.

Additionally, move tests that don't have anything to do with
out-of-bounds checks from draw-arrays-out-of-bounds.html and
draw-elements-out-of-bounds.html to gl-drawarrays.html and
gl-drawelements.html.

Some tests are added to unify testing done to drawArrays and
drawElements.
Add out-of-bounds tests for instanced attributes

Previously, there were only tests for non-instanced attributes. Add tests
where vertexAttribDivisor is set to != 0 for an attribute.
Do not expect ToInt32 overflow when value should not be converted with ToInt32

Hexadecimal literals may result in number values > 2^31 according to
ECMAScript spec 5.1 sections 7.8.3 and 8.5, and GLintptr is a long long
(64-bit) value according to WebGL IDL. Thus, supplying 0xffffffff to
drawElements offset parameter should not result in -1 and INVALID_VALUE
but rather INVALID_OPERATION. Fix this error.
Add ANGLE_instanced_arrays out-of-bounds test to test list
Restore testing drawArrays with desktop enums

This was previously covered by draw-arrays-out-of-bounds.html. This is a
more appropriate place for the test.
Merge pull request #509 from NVIDIA/angle-instanced-arrays-out-of-bounds

ANGLE_instanced_arrays out-of-bounds tests
Drawing with null CURRENT_PROGRAM should error.

This is actually Chrome's behavior already. Firefox ignores it, in line with the GLES2 spec.
Add to the 'thanks' list, and fix formatting.

The very definition of a shameless plug?
Spec how texImage2D sets the texture width and height depending on the element

It is worthwhile to spec this explicitly to avoid any ambiguity,
especially for less straightforward cases like SVG images.
Merge pull request #511 from jdashg/more-credit

Add to the 'thanks' list, and fix formatting.
Merge pull request #512 from NVIDIA/teximage2d-width-height-spec

Spec how texImage2D sets the texture width and height depending on the element
Show translated shader source using WEBGL_debug_shaders in glsl tests

The translated shader source can be useful when debugging shader
translator or GPU driver issues, so display it alongside the original
source if WEBGL_debug_shaders is available.

Also includes some cleanup of related code.
Refactor shader logging to reduce code duplication

Some tests that did not include shader logging before also get shader
logging.
Merge pull request #514 from NVIDIA/use-debug-shaders

Show translated shader source using WEBGL_debug_shaders in glsl tests
Clean up texture tests

texImage2D canvas test is refactored to reduce code duplication a bit.
Dead code and incorrect comments are fixed.
Add test for texture upload size

The test checks that the texture size is set correctly when an ImageData
object, an img, canvas, or video element is uploaded using texImage2D or
texSubImage2D. In the absence of getTexLevelParameter, the checking is
done by calling texSubImage2D near the coordinates of the texture's
bottom right corner and verifying that the GL error is set according to
whether it hits the inside or the outside of the texture.

The test verifies that setting the width and height attributes of
elements will affect the upload size of img elements which contain an
SVG image and also canvas elements, but don't affect the upload
size of bitmap img elements or video elements.
Fix incorrect return statements

Return statements shouldn't appear in the main body of the script. Add
"use strict"; to the tests as well.