OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 <script src="resources/webgl-test.js"></script> | 4 <script src="resources/webgl-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 | 9 |
10 <script> | 10 <script> |
11 description("Tests the WebGLUniformLocation API"); | 11 description("Tests the WebGLUniformLocation API"); |
12 | 12 |
13 if (window.internals) | 13 if (window.internals) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // Retrieve the locations again, and they should be good. | 63 // Retrieve the locations again, and they should be good. |
64 locationSx = contextA.getUniformLocation(programS, "u_struct.x"); | 64 locationSx = contextA.getUniformLocation(programS, "u_struct.x"); |
65 locationArray0 = contextA.getUniformLocation(programS, "u_array[0]"); | 65 locationArray0 = contextA.getUniformLocation(programS, "u_array[0]"); |
66 shouldGenerateGLError(contextA, contextA.NO_ERROR, "contextA.uniform1i(locationS
x, 3)"); | 66 shouldGenerateGLError(contextA, contextA.NO_ERROR, "contextA.uniform1i(locationS
x, 3)"); |
67 shouldBe("contextA.getUniform(programS, locationSx)", "3"); | 67 shouldBe("contextA.getUniform(programS, locationSx)", "3"); |
68 </script> | 68 </script> |
69 | 69 |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |