| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>WebGL attrib location length tests</title> | 5 <title>WebGL attrib location length tests</title> |
| 6 <script src="../../js/resources/js-test-pre.js"></script> | 6 <script src="../../js/resources/js-test-pre.js"></script> |
| 7 <script src="resources/webgl-test.js"> </script> | 7 <script src="resources/webgl-test.js"> </script> |
| 8 <script src="resources/webgl-test-utils.js"> </script> | 8 <script src="resources/webgl-test-utils.js"> </script> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 debug("Attempt to bind too-long attrib location should produce error"); | 87 debug("Attempt to bind too-long attrib location should produce error"); |
| 88 var program = gl.createProgram(); | 88 var program = gl.createProgram(); |
| 89 gl.bindAttribLocation(program, 0, "vPosition012345678901234567890123456789012345
67890123456789012345678901234567890123456789012345678901234567890123456789012345
67890123456789012345678901234567890123456789012345678901234567890123456789012345
6789012345678901234567890123456789012345678901234567"); | 89 gl.bindAttribLocation(program, 0, "vPosition012345678901234567890123456789012345
67890123456789012345678901234567890123456789012345678901234567890123456789012345
67890123456789012345678901234567890123456789012345678901234567890123456789012345
6789012345678901234567890123456789012345678901234567"); |
| 90 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE); | 90 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE); |
| 91 | 91 |
| 92 debug("Attempt to fetch too-long attrib location should produce error"); | 92 debug("Attempt to fetch too-long attrib location should produce error"); |
| 93 shouldBe('gl.getAttribLocation(program, "vPosition012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
0123456789012345678901234567890123456789012345678901234567")', '-1'); | 93 shouldBe('gl.getAttribLocation(program, "vPosition012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
0123456789012345678901234567890123456789012345678901234567")', '-1'); |
| 94 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE); | 94 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE); |
| 95 | 95 |
| 96 </script> | 96 </script> |
| 97 <script src="../../js/resources/js-test-post.js"></script> | |
| 98 </body> | 97 </body> |
| 99 </html> | 98 </html> |
| OLD | NEW |