OLD | NEW |
1 This test ensures WebGL implementations handle uniform arrays correctly. | 1 This test ensures WebGL implementations handle uniform arrays correctly. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 | 6 |
7 check float | 7 check float |
8 PASS 1 uniform found | 8 PASS 1 uniform found |
9 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | 9 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 |
10 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | 10 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program |
11 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform1fv | 11 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform1fv |
12 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform1fv | 12 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform1fv |
13 PASS getError was expected value: NO_ERROR : can call gl.getUniform | 13 PASS getError was expected value: NO_ERROR : can call gl.getUniform |
14 PASS gl.getUniform returns the correct type. | 14 PASS gl.getUniform returns the correct type. |
15 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | 15 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation |
16 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | 16 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform |
17 PASS value put in (16) matches value pulled out (16) | 17 PASS value put in (16) matches value pulled out (16) |
18 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | 18 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation |
19 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | 19 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform |
20 PASS value put in (15) matches value pulled out (15) | 20 FAIL value put in (15) matches value pulled out (16) |
21 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | 21 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation |
22 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | 22 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform |
23 PASS value put in (14) matches value pulled out (14) | 23 FAIL value put in (14) matches value pulled out (16) |
24 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | 24 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails |
25 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | 25 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) |
26 | 26 |
27 check vec2 | 27 check vec2 |
28 PASS 1 uniform found | 28 PASS 1 uniform found |
29 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | 29 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 |
30 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | 30 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program |
31 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform2fv | 31 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform2fv |
32 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform2fv | 32 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform2fv |
33 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform2fv | 33 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform2fv |
34 PASS getError was expected value: NO_ERROR : can call gl.getUniform | 34 PASS getError was expected value: NO_ERROR : can call gl.getUniform |
35 PASS gl.getUniform returns the correct type. | 35 PASS gl.getUniform returns the correct type. |
36 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | 36 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation |
37 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | 37 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform |
38 PASS value put in ([16, 15]) matches value pulled out ([16, 15]) | 38 PASS value put in ([16, 15]) matches value pulled out ([16, 15]) |
39 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | 39 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation |
40 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | 40 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform |
41 PASS value put in ([14, 13]) matches value pulled out ([14, 13]) | 41 FAIL value put in ([14, 13]) matches value pulled out ([16, 15]) |
42 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | 42 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation |
43 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | 43 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform |
44 PASS value put in ([12, 11]) matches value pulled out ([12, 11]) | 44 FAIL value put in ([12, 11]) matches value pulled out ([16, 15]) |
45 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | 45 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails |
46 PASS passing non-array to glUniform*fv should throw TypeError | 46 PASS passing non-array to glUniform*fv should throw TypeError |
47 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | 47 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) |
48 | 48 |
49 check vec3 | 49 check vec3 |
50 PASS 1 uniform found | 50 PASS 1 uniform found |
51 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | 51 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 |
52 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | 52 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program |
53 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform3fv | 53 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform3fv |
54 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform3fv | 54 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform3fv |
55 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform3fv | 55 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform3fv |
56 PASS getError was expected value: NO_ERROR : can call gl.getUniform | 56 PASS getError was expected value: NO_ERROR : can call gl.getUniform |
57 PASS gl.getUniform returns the correct type. | 57 PASS gl.getUniform returns the correct type. |
58 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | 58 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation |
59 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | 59 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform |
60 PASS value put in ([16, 15, 14]) matches value pulled out ([16, 15, 14]) | 60 PASS value put in ([16, 15, 14]) matches value pulled out ([16, 15, 14]) |
61 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | 61 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation |
62 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | 62 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform |
63 PASS value put in ([13, 12, 11]) matches value pulled out ([13, 12, 11]) | 63 FAIL value put in ([13, 12, 11]) matches value pulled out ([16, 15, 14]) |
64 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | 64 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation |
65 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | 65 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform |
66 PASS value put in ([10, 9, 8]) matches value pulled out ([10, 9, 8]) | 66 FAIL value put in ([10, 9, 8]) matches value pulled out ([16, 15, 14]) |
67 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | 67 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails |
68 PASS passing non-array to glUniform*fv should throw TypeError | 68 PASS passing non-array to glUniform*fv should throw TypeError |
69 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | 69 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) |
70 | 70 |
71 check vec4 | 71 check vec4 |
72 PASS 1 uniform found | 72 PASS 1 uniform found |
73 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | 73 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 |
74 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | 74 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program |
75 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform4fv | 75 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform4fv |
76 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform4fv | 76 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform4fv |
77 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform4fv | 77 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform4fv |
78 PASS getError was expected value: NO_ERROR : can call gl.getUniform | 78 PASS getError was expected value: NO_ERROR : can call gl.getUniform |
79 PASS gl.getUniform returns the correct type. | 79 PASS gl.getUniform returns the correct type. |
80 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | 80 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation |
81 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | 81 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform |
82 PASS value put in ([16, 15, 14, 13]) matches value pulled out ([16, 15, 14, 13]) | 82 PASS value put in ([16, 15, 14, 13]) matches value pulled out ([16, 15, 14, 13]) |
83 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | 83 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation |
84 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | 84 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform |
85 PASS value put in ([12, 11, 10, 9]) matches value pulled out ([12, 11, 10, 9]) | 85 FAIL value put in ([12, 11, 10, 9]) matches value pulled out ([16, 15, 14, 13]) |
86 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | 86 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation |
87 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | 87 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform |
88 PASS value put in ([8, 7, 6, 5]) matches value pulled out ([8, 7, 6, 5]) | 88 FAIL value put in ([8, 7, 6, 5]) matches value pulled out ([16, 15, 14, 13]) |
89 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | 89 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails |
90 PASS passing non-array to glUniform*fv should throw TypeError | 90 PASS passing non-array to glUniform*fv should throw TypeError |
91 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | 91 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) |
92 | 92 |
93 PASS successfullyParsed is true | 93 PASS successfullyParsed is true |
94 | 94 |
95 TEST COMPLETE | 95 TEST COMPLETE |
96 | 96 |
OLD | NEW |