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

Side by Side Diff: conformance/gl-get-calls.html

Issue 8344024: Remove older revision of webgl conformance tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/webgl/sdk/tests/
Patch Set: Created 9 years, 2 months 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
« no previous file with comments | « conformance/gl-get-active-uniform.html ('k') | conformance/gl-geterror.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!--
2 Copyright (C) 2011 Apple Computer, Inc. All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7 1. Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 2. Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12
13 THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 -->
25
26 <!DOCTYPE html>
27 <html>
28 <head>
29 <meta charset="utf-8">
30 <title>WebGL gl calls Conformance Tests</title>
31 <link rel="stylesheet" href="../resources/js-test-style.css"/>
32 <script src="../resources/js-test-pre.js"></script>
33 <script src="resources/webgl-test.js"></script>
34 </head>
35 <body>
36 <div id="description"></div>
37 <div id="console"></div>
38 <canvas id="canvas" width="2" height="2"> </canvas>
39
40 <script>
41
42 description("This test ensures basic functionality of the underlying graphics li brary");
43
44 debug("");
45 debug("Canvas.getContext");
46
47 var context = create3DContext(document.getElementById("canvas"));
48 if (!context)
49 testFailed("context does not exist");
50 else {
51 testPassed("context exists");
52
53 debug("");
54 debug("Context contains getError");
55 if ("getError" in context)
56 testPassed("context contains getError");
57 else
58 testFailed("context does not contains getError");
59
60 debug("");
61 debug("Check default values");
62 shouldBe('context.getParameter(context.ACTIVE_TEXTURE)', 'context.TEXTURE0') ;
63 shouldBe('(context.getParameter(context.ALIASED_LINE_WIDTH_RANGE)[0] == 1) | | (context.getParameter(context.ALIASED_LINE_WIDTH_RANGE)[1] == 1)', 'true');
64 shouldBe('(context.getParameter(context.ALIASED_POINT_SIZE_RANGE)[0] == 1) | | (context.getParameter(context.ALIASED_POINT_SIZE_RANGE)[1] == 1)', 'true');
65 shouldBe('context.getParameter(context.ARRAY_BUFFER_BINDING)', 'null');
66 shouldBe('context.getParameter(context.BLEND)', 'false');
67 shouldBe('context.getParameter(context.BLEND_COLOR)', '[0, 0, 0, 0]');
68 shouldBe('context.getParameter(context.BLEND_DST_ALPHA)', '0');
69 shouldBe('context.getParameter(context.BLEND_DST_RGB)', '0');
70 shouldBe('context.getParameter(context.BLEND_EQUATION_ALPHA)', 'context.FUNC _ADD');
71 shouldBe('context.getParameter(context.BLEND_EQUATION_RGB)', 'context.FUNC_A DD');
72 shouldBe('context.getParameter(context.BLEND_SRC_ALPHA)', '1');
73 shouldBe('context.getParameter(context.BLEND_SRC_RGB)', '1');
74 shouldBe('context.getParameter(context.COLOR_CLEAR_VALUE)', '[0, 0, 0, 0]');
75 shouldBe('context.getParameter(context.COLOR_WRITEMASK)', '[true, true, true , true]');
76 shouldBe('context.getParameter(context.CULL_FACE)', 'false');
77 shouldBe('context.getParameter(context.CULL_FACE_MODE)', 'context.BACK');
78 shouldBe('context.getParameter(context.CURRENT_PROGRAM)', 'null');
79 shouldBe('context.getParameter(context.DEPTH_CLEAR_VALUE)', '1');
80 shouldBe('context.getParameter(context.DEPTH_FUNC)', 'context.LESS');
81 shouldBe('context.getParameter(context.DEPTH_RANGE)', '[0, 1]');
82 shouldBe('context.getParameter(context.DEPTH_TEST)', 'false');
83 shouldBe('context.getParameter(context.DEPTH_WRITEMASK)', 'true');
84 shouldBe('context.getParameter(context.DITHER)', 'true');
85 shouldBe('context.getParameter(context.ELEMENT_ARRAY_BUFFER_BINDING)', 'null ');
86 shouldBe('context.getParameter(context.FRONT_FACE)', 'context.CCW');
87 shouldBe('context.getParameter(context.GENERATE_MIPMAP_HINT)', 'context.DONT _CARE');
88 shouldBe('context.getParameter(context.LINE_WIDTH)', '1');
89 shouldBe('context.getParameter(context.POLYGON_OFFSET_FACTOR)', '0');
90 shouldBe('context.getParameter(context.POLYGON_OFFSET_FILL)', 'false');
91 shouldBe('context.getParameter(context.POLYGON_OFFSET_UNITS)', '0');
92 shouldBe('context.getParameter(context.RENDERBUFFER_BINDING)', 'null');
93 shouldBe('context.getParameter(context.SAMPLE_COVERAGE_INVERT)', 'false');
94 shouldBe('context.getParameter(context.SAMPLE_COVERAGE_VALUE)', '1');
95 shouldBe('context.getParameter(context.SCISSOR_BOX)[0]', '0');
96 shouldBe('context.getParameter(context.SCISSOR_BOX)[1]', '0');
97 shouldBe('context.getParameter(context.SCISSOR_TEST)', 'false');
98 shouldBe('context.getParameter(context.STENCIL_BACK_FAIL)', 'context.KEEP');
99 shouldBe('context.getParameter(context.STENCIL_BACK_FUNC)', 'context.ALWAYS' );
100 shouldBe('context.getParameter(context.STENCIL_BACK_PASS_DEPTH_FAIL)', 'cont ext.KEEP');
101 shouldBe('context.getParameter(context.STENCIL_BACK_PASS_DEPTH_PASS)', 'cont ext.KEEP');
102 shouldBe('context.getParameter(context.STENCIL_BACK_REF)', '0');
103
104 shouldBe('context.getParameter(context.STENCIL_BACK_VALUE_MASK)', '0xFFFFFFF F');
105 shouldBe('context.getParameter(context.STENCIL_BACK_WRITEMASK)', '0xFFFFFFFF ');
106
107 // If EXT_packed_depth_stencil is supported, STENCIL_BITS > 0; otherwise, ST ENCIL_BITS == 0.
108 shouldBe('context.getParameter(context.STENCIL_BITS) >= 0', 'true');
109 shouldBe('context.getParameter(context.STENCIL_CLEAR_VALUE)', '0');
110 shouldBe('context.getParameter(context.STENCIL_FAIL)', 'context.KEEP');
111 shouldBe('context.getParameter(context.STENCIL_FUNC)', 'context.ALWAYS');
112 shouldBe('context.getParameter(context.STENCIL_PASS_DEPTH_FAIL)', 'context.K EEP');
113 shouldBe('context.getParameter(context.STENCIL_PASS_DEPTH_PASS)', 'context.K EEP');
114 shouldBe('context.getParameter(context.STENCIL_REF)', '0');
115 shouldBe('context.getParameter(context.STENCIL_TEST)', 'false');
116
117 shouldBe('context.getParameter(context.STENCIL_VALUE_MASK)', '0xFFFFFFFF');
118 shouldBe('context.getParameter(context.STENCIL_WRITEMASK)', '0xFFFFFFFF');
119
120 shouldBe('context.getParameter(context.TEXTURE_BINDING_2D)', 'null');
121 shouldBe('context.getParameter(context.TEXTURE_BINDING_CUBE_MAP)', 'null');
122 shouldBe('context.getParameter(context.UNPACK_ALIGNMENT)', '4');
123 shouldBe('context.getParameter(context.UNPACK_FLIP_Y_WEBGL)', 'false');
124 shouldBe('context.getParameter(context.UNPACK_PREMULTIPLY_ALPHA_WEBGL)', 'fa lse');
125 shouldBe('context.getParameter(context.VIEWPORT)', '[0, 0, 2, 2]');
126 shouldBe('context.getParameter(context.NUM_COMPRESSED_TEXTURE_FORMATS)', '0' );
127
128 shouldBeTrue('context.getParameter(context.MAX_COMBINED_TEXTURE_IMAGE_UNITS) >= 8');
129 shouldBeTrue('context.getParameter(context.MAX_CUBE_MAP_TEXTURE_SIZE) >= 16' );
130 shouldBeTrue('context.getParameter(context.MAX_FRAGMENT_UNIFORM_VECTORS) >= 16');
131 shouldBeTrue('context.getParameter(context.MAX_RENDERBUFFER_SIZE) >= 1');
132 shouldBeTrue('context.getParameter(context.MAX_TEXTURE_IMAGE_UNITS) >= 8');
133 shouldBeTrue('context.getParameter(context.MAX_TEXTURE_SIZE) >= 64');
134 shouldBeTrue('context.getParameter(context.MAX_VARYING_VECTORS) >= 8');
135 shouldBeTrue('context.getParameter(context.MAX_VERTEX_ATTRIBS) >= 8');
136 shouldBeTrue('context.getParameter(context.MAX_VERTEX_TEXTURE_IMAGE_UNITS) > = 0');
137 shouldBeTrue('context.getParameter(context.MAX_VERTEX_UNIFORM_VECTORS) >= 12 8');
138 // Note: This requirement should be removed from the spec IMO. Many impeleme ntations
139 // will be based on FBOs and FBOs might have a restriction smaller than the current screen size.
140 // especially if there are multiple screens.
141 shouldBeTrue('context.getParameter(context.MAX_VIEWPORT_DIMS)[0] >= window.s creen.width');
142 shouldBeTrue('context.getParameter(context.MAX_VIEWPORT_DIMS)[1] >= window.s creen.height');
143 }
144
145 debug("");
146 successfullyParsed = true;
147
148 </script>
149 <script src="../resources/js-test-post.js"></script>
150
151 </body>
152 </html>
OLDNEW
« no previous file with comments | « conformance/gl-get-active-uniform.html ('k') | conformance/gl-geterror.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698