OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <title>WebGL BindBuffer conformance test.</title> | 5 <title>WebGL BindBuffer conformance test.</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 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <canvas id="example" width="40" height="40" style="width: 40px; height: 40px;"><
/canvas> | 10 <canvas id="example" width="40" height="40" style="width: 40px; height: 40px;"><
/canvas> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 assertMsg(gl.getError() == gl.NO_ERROR, | 46 assertMsg(gl.getError() == gl.NO_ERROR, |
47 "should be able to unbind buffer."); | 47 "should be able to unbind buffer."); |
48 gl.bindBuffer(gl.ARRAY_BUFFER, buf); | 48 gl.bindBuffer(gl.ARRAY_BUFFER, buf); |
49 assertMsg(gl.getError() == gl.INVALID_OPERATION, | 49 assertMsg(gl.getError() == gl.INVALID_OPERATION, |
50 "should get INVALID_OPERATION if attempting to bind buffer to differ
ent target"); | 50 "should get INVALID_OPERATION if attempting to bind buffer to differ
ent target"); |
51 } | 51 } |
52 | 52 |
53 debug(""); | 53 debug(""); |
54 </script> | 54 </script> |
55 </body> | 55 </body> |
56 <script src="../../js/resources/js-test-post.js"></script> | |
57 | 56 |
58 <script> | 57 <script> |
59 </script> | 58 </script> |
60 | 59 |
61 </body> | 60 </body> |
62 </html> | 61 </html> |
63 | 62 |
OLD | NEW |