KhronosGroup/WebGL — pull request #66 by mvujovic (2012-10-19 17:47:00+00:00)
Title: Add a check that getUniformLocation works with array names without array brackets

Add a check that the following works:
gl.getUniformLocation(program, "long-array-name");

We already have tests for specific components. For example:
gl.getUniformLocation(program, "long-array-name[0]");
gl.getUniformLocation(program, "long-array-name[1]");

Right now, Safari with WebKit r131676 fails this test. Chrome passes.

According to the glGetUniformLocation man page [1], using the array name without array brackets should work:
"""
Except if the last part of name indicates a uniform variable array, the location of the first element of an array can be retrieved by using the name of the array, or by using the name appended by "[0]".
"""

[1]: http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml