Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: conformance/more/conformance/methods.html

Issue 41503006: Add ToT WebGL conformance tests : part 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webgl/sdk/tests/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <!--
6
7 /*
8 ** Copyright (c) 2012 The Khronos Group Inc.
9 **
10 ** Permission is hereby granted, free of charge, to any person obtaining a
11 ** copy of this software and/or associated documentation files (the
12 ** "Materials"), to deal in the Materials without restriction, including
13 ** without limitation the rights to use, copy, modify, merge, publish,
14 ** distribute, sublicense, and/or sell copies of the Materials, and to
15 ** permit persons to whom the Materials are furnished to do so, subject to
16 ** the following conditions:
17 **
18 ** The above copyright notice and this permission notice shall be included
19 ** in all copies or substantial portions of the Materials.
20 **
21 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
28 */
29
30 -->
31 <link rel="stylesheet" type="text/css" href="../unit.css" />
32 <script type="application/x-javascript" src="../unit.js"></script>
33 <script type="application/x-javascript" src="../util.js"></script>
34 <script type="application/x-javascript">
35
36 /*
37 The following tests are generated from
38 http://www.khronos.org/registry/gles/api/2.0/gl2.h
39 and api_modifications.txt
40 */
41 var methods = ['canvas',
42 "activeTexture",
43 "attachShader",
44 "bindAttribLocation",
45 "bindBuffer",
46 "bindFramebuffer",
47 "bindRenderbuffer",
48 "bindTexture",
49 "blendColor",
50 "blendEquation",
51 "blendEquationSeparate",
52 "blendFunc",
53 "blendFuncSeparate",
54 "bufferData",
55 "bufferSubData",
56 "checkFramebufferStatus",
57 "clear",
58 "clearColor",
59 "clearDepth",
60 "clearStencil",
61 "colorMask",
62 "compileShader",
63 "copyTexImage2D",
64 "copyTexSubImage2D",
65 "createProgram",
66 "createShader",
67 "cullFace",
68 "deleteBuffer",
69 "deleteFramebuffer",
70 "deleteProgram",
71 "deleteRenderbuffer",
72 "deleteShader",
73 "deleteTexture",
74 "depthFunc",
75 "depthMask",
76 "depthRange",
77 "detachShader",
78 "disable",
79 "disableVertexAttribArray",
80 "drawArrays",
81 "drawElements",
82 "enable",
83 "enableVertexAttribArray",
84 "finish",
85 "flush",
86 "framebufferRenderbuffer",
87 "framebufferTexture2D",
88 "frontFace",
89 "createBuffer",
90 "generateMipmap",
91 "createFramebuffer",
92 "createRenderbuffer",
93 "createTexture",
94 "getActiveAttrib",
95 "getActiveUniform",
96 "getAttachedShaders",
97 "getAttribLocation",
98 "getBufferParameter",
99 "getError",
100 "getExtension",
101 "getSupportedExtensions",
102 "getFramebufferAttachmentParameter",
103 "getProgramInfoLog",
104 "getRenderbufferParameter",
105 "getShaderInfoLog",
106 "getShaderSource",
107 "getUniformLocation",
108 "hint",
109 "isBuffer",
110 "isContextLost",
111 "isEnabled",
112 "isFramebuffer",
113 "isProgram",
114 "isRenderbuffer",
115 "isShader",
116 "isTexture",
117 "lineWidth",
118 "linkProgram",
119 "polygonOffset",
120 "readPixels",
121 "renderbufferStorage",
122 "sampleCoverage",
123 "scissor",
124 "shaderSource",
125 "stencilFunc",
126 "stencilFuncSeparate",
127 "stencilMask",
128 "stencilMaskSeparate",
129 "stencilOp",
130 "stencilOpSeparate",
131 "texImage2D",
132 "texParameteri",
133 "texSubImage2D",
134 "uniform1f",
135 "uniform1fv",
136 "uniform1i",
137 "uniform1iv",
138 "uniform2f",
139 "uniform2fv",
140 "uniform2i",
141 "uniform2iv",
142 "uniform3f",
143 "uniform3fv",
144 "uniform3i",
145 "uniform3iv",
146 "uniform4f",
147 "uniform4fv",
148 "uniform4i",
149 "uniform4iv",
150 "uniformMatrix2fv",
151 "uniformMatrix3fv",
152 "uniformMatrix4fv",
153 "useProgram",
154 "validateProgram",
155 "vertexAttrib1f",
156 "vertexAttrib1fv",
157 "vertexAttrib2f",
158 "vertexAttrib2fv",
159 "vertexAttrib3f",
160 "vertexAttrib3fv",
161 "vertexAttrib4f",
162 "vertexAttrib4fv",
163 "vertexAttribPointer",
164 "viewport",
165 "getParameter",
166 "getProgramParameter",
167 "getShaderParameter",
168 "getTexParameter",
169 "getUniform",
170 "getVertexAttrib"
171 ]
172
173 Tests.testOES20Methods = function(gl) {
174 for (var i=0; i<methods.length; i++) {
175 assertProperty(gl, methods[i]);
176 }
177 var extended = false;
178 for (var i in gl) {
179 if (i.match(/^[a-z_]+$/) && methods.indexOf(i) == -1) {
180 if (!extended) {
181 extended = true;
182 var h = document.createElement('h3');
183 h.textContent = "Also found the following extra properties";
184 __testLog__.appendChild(h);
185 }
186 log(i);
187 }
188 }
189 }
190
191 Tests.startUnit = function() {
192 var canvas = document.getElementById('gl');
193 var gl = wrapGLContext(getGLContext(canvas));
194 return [gl];
195 }
196
197 </script>
198 <style>canvas{ position:absolute; }</style>
199 </head><body>
200 <canvas id="gl" width="1" height="1"></canvas>
201 </body></html>
OLDNEW
« no previous file with comments | « conformance/more/conformance/getContext.html ('k') | conformance/more/conformance/quickCheckAPI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698