| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.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> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 shouldGenerateGLError(contextA, contextA.INVALID_OPERATION, "contextA.uniform1i(
locationSx, 3)"); | 60 shouldGenerateGLError(contextA, contextA.INVALID_OPERATION, "contextA.uniform1i(
locationSx, 3)"); |
| 61 shouldGenerateGLError(contextA, contextA.INVALID_OPERATION, "contextA.getUniform
(programS, locationSx)"); | 61 shouldGenerateGLError(contextA, contextA.INVALID_OPERATION, "contextA.getUniform
(programS, locationSx)"); |
| 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 <script src="../../js/resources/js-test-post.js"></script> | |
| 71 </body> | 70 </body> |
| 72 </html> | 71 </html> |
| OLD | NEW |