2 Copyright (c) 2019 The Khronos Group Inc.
3 Use of this source code is governed by an MIT-style license that can be
4 found in the LICENSE.txt file.
10 <title>WebGL2 Methods Test
</title>
11 <link rel=
"stylesheet" href=
"../../resources/js-test-style.css"/>
12 <script src=
"../../js/js-test-pre.js"></script>
13 <script src=
"../../js/webgl-test-utils.js"></script>
14 <script src=
"../../js/tests/context-methods.js"></script>
17 <div id=
"description"></div>
18 <div id=
"console"></div>
19 <canvas id=
"canvas" style=
"width: 50px; height: 50px;"> </canvas>
22 description("This test ensures that the WebGL context has all the methods in the specification.");
25 "getContextAttributes",
35 "blendEquationSeparate",
40 "checkFramebufferStatus",
47 "compressedTexImage2D",
48 "compressedTexSubImage2D",
69 "disableVertexAttribArray",
73 "enableVertexAttribArray",
76 "framebufferRenderbuffer",
77 "framebufferTexture2D",
88 "getFramebufferAttachmentParameter",
89 "getProgramParameter",
91 "getRenderbufferParameter",
94 "getShaderPrecisionFormat",
96 "getSupportedExtensions",
101 "getVertexAttribOffset",
116 "renderbufferStorage",
121 "stencilFuncSeparate",
123 "stencilMaskSeparate",
159 "vertexAttribPointer",
166 "framebufferTextureLayer",
167 "getInternalformatParameter",
168 "invalidateFramebuffer",
169 "invalidateSubFramebuffer",
171 "renderbufferStorageMultisample",
177 "compressedTexImage3D",
178 "compressedTexSubImage3D",
179 "getFragDataLocation",
188 "uniformMatrix2x3fv",
189 "uniformMatrix3x2fv",
190 "uniformMatrix2x4fv",
191 "uniformMatrix4x2fv",
192 "uniformMatrix3x4fv",
193 "uniformMatrix4x3fv",
198 "vertexAttribIPointer",
199 "vertexAttribDivisor",
200 "drawArraysInstanced",
201 "drawElementsInstanced",
221 "getSamplerParameter",
228 "createTransformFeedback",
229 "deleteTransformFeedback",
230 "isTransformFeedback",
231 "bindTransformFeedback",
232 "beginTransformFeedback",
233 "endTransformFeedback",
234 "transformFeedbackVaryings",
235 "getTransformFeedbackVarying",
236 "pauseTransformFeedback",
237 "resumeTransformFeedback",
240 "getIndexedParameter",
243 "getUniformBlockIndex",
244 "getActiveUniformBlockParameter",
245 "getActiveUniformBlockName",
246 "uniformBlockBinding",
254 debug("Canvas.getContext");
256 const wtu
= WebGLTestUtils
;
257 const canvas
= document
.getElementById("canvas");
258 const gl
= wtu
.create3DContext(canvas
, null, 2);
260 testContextMethods(gl
, methods
);
263 var successfullyParsed
= true;
265 <script src=
"../../js/js-test-post.js"></script>