OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (C) 2011 Apple Computer, Inc. All rights reserved. | 2 Copyright (C) 2011 Apple Computer, Inc. All rights reserved. |
3 | 3 |
4 Redistribution and use in source and binary forms, with or without | 4 Redistribution and use in source and binary forms, with or without |
5 modification, are permitted provided that the following conditions | 5 modification, are permitted provided that the following conditions |
6 are met: | 6 are met: |
7 1. Redistributions of source code must retain the above copyright | 7 1. Redistributions of source code must retain the above copyright |
8 notice, this list of conditions and the following disclaimer. | 8 notice, this list of conditions and the following disclaimer. |
9 2. Redistributions in binary form must reproduce the above copyright | 9 2. Redistributions in binary form must reproduce the above copyright |
10 notice, this list of conditions and the following disclaimer in the | 10 notice, this list of conditions and the following disclaimer in the |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 shouldBe('gl.getVertexAttrib(1, gl.VERTEX_ATTRIB_ARRAY_STRIDE)', '36'); | 254 shouldBe('gl.getVertexAttrib(1, gl.VERTEX_ATTRIB_ARRAY_STRIDE)', '36'); |
255 shouldBe('gl.getVertexAttribOffset(1, gl.VERTEX_ATTRIB_ARRAY_POINTER)', '12'); | 255 shouldBe('gl.getVertexAttribOffset(1, gl.VERTEX_ATTRIB_ARRAY_POINTER)', '12'); |
256 gl.disableVertexAttribArray(1); | 256 gl.disableVertexAttribArray(1); |
257 shouldBe('gl.getVertexAttrib(1, gl.VERTEX_ATTRIB_ARRAY_ENABLED)', 'false'); | 257 shouldBe('gl.getVertexAttrib(1, gl.VERTEX_ATTRIB_ARRAY_ENABLED)', 'false'); |
258 gl.vertexAttrib4f(1, 5, 6, 7, 8); | 258 gl.vertexAttrib4f(1, 5, 6, 7, 8); |
259 shouldBe('gl.getVertexAttrib(1, gl.CURRENT_VERTEX_ATTRIB)', '[5, 6, 7, 8]'); | 259 shouldBe('gl.getVertexAttrib(1, gl.CURRENT_VERTEX_ATTRIB)', '[5, 6, 7, 8]'); |
260 glErrorShouldBe(gl, gl.NO_ERROR); | 260 glErrorShouldBe(gl, gl.NO_ERROR); |
261 | 261 |
262 // Test cases where name == 0 | 262 // Test cases where name == 0 |
263 gl.deleteTexture(texture); | 263 gl.deleteTexture(texture); |
264 shouldBeNull('gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTA
CHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME)'); | 264 shouldBe('gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHME
NT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE)', 'gl.NONE'); |
265 gl.deleteRenderbuffer(renderbuffer); | 265 gl.deleteRenderbuffer(renderbuffer); |
266 shouldBeNull('gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.DEPTH_ATTA
CHMENT, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME)'); | 266 shouldBe('gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.DEPTH_ATTACHME
NT, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE)', 'gl.NONE'); |
267 gl.deleteBuffer(buffer); | 267 gl.deleteBuffer(buffer); |
268 shouldBeNull('gl.getVertexAttrib(1, gl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING)'); | 268 shouldBeNull('gl.getVertexAttrib(1, gl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING)'); |
269 glErrorShouldBe(gl, gl.NO_ERROR); | 269 glErrorShouldBe(gl, gl.NO_ERROR); |
270 | 270 |
271 successfullyParsed = true; | 271 successfullyParsed = true; |
272 </script> | 272 </script> |
273 | 273 |
274 <script src="../resources/js-test-post.js"></script> | 274 <script src="../resources/js-test-post.js"></script> |
275 </body> | 275 </body> |
276 </html> | 276 </html> |
OLD | NEW |