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

Side by Side Diff: third_party/webgl/conformance-suites/1.0.0/conformance/gl-get-calls.html

Issue 9360034: Remove everthing except conformance tests in the deps/third_party/webgl (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 8 years, 10 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
OLDNEW
(Empty)
1 <!--
2 Copyright (C) 2009 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 <html xmlns="http://www.w3.org/1999/xhtml">
27 <head>
28 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
29 <title>WebGL gl calls Conformance Tests</title>
30 <link rel="stylesheet" href="../resources/js-test-style.css"/>
31 <script src="../resources/js-test-pre.js"></script>
32 <script src="resources/webgl-test.js"></script>
33 </head>
34 <body>
35 <div id="description"></div>
36 <div id="console"></div>
37 <canvas id="canvas" width="2" height="2"> </canvas>
38
39 <script>
40
41 description("This test ensures basic functionality of the underlying graphics li brary");
42
43 debug("");
44 debug("Canvas.getContext");
45
46 var context = create3DContext(document.getElementById("canvas"));
47 if (!context)
48 testFailed("context does not exist");
49 else {
50 testPassed("context exists");
51
52 debug("");
53 debug("Context contains getError");
54 if ("getError" in context)
55 testPassed("context contains getError");
56 else
57 testFailed("context does not contains getError");
58
59 debug("");
60 debug("Check default values");
61 shouldBe('context.getParameter(context.ACTIVE_TEXTURE)', 'context.TEXTURE0') ;
62 shouldBe('(context.getParameter(context.ALIASED_LINE_WIDTH_RANGE)[0] == 1) | | (context.getParameter(context.ALIASED_LINE_WIDTH_RANGE)[1] == 1)', 'true');
63 shouldBe('(context.getParameter(context.ALIASED_POINT_SIZE_RANGE)[0] == 1) | | (context.getParameter(context.ALIASED_POINT_SIZE_RANGE)[1] == 1)', 'true');
64 shouldBe('context.getParameter(context.ARRAY_BUFFER_BINDING)', 'null');
65 shouldBe('context.getParameter(context.BLEND)', 'false');
66 shouldBe('context.getParameter(context.BLEND_COLOR)', '[0, 0, 0, 0]');
67 shouldBe('context.getParameter(context.BLEND_DST_ALPHA)', '0');
68 shouldBe('context.getParameter(context.BLEND_DST_RGB)', '0');
69 shouldBe('context.getParameter(context.BLEND_EQUATION_ALPHA)', 'context.FUNC _ADD');
70 shouldBe('context.getParameter(context.BLEND_EQUATION_RGB)', 'context.FUNC_A DD');
71 shouldBe('context.getParameter(context.BLEND_SRC_ALPHA)', '1');
72 shouldBe('context.getParameter(context.BLEND_SRC_RGB)', '1');
73 shouldBe('context.getParameter(context.COLOR_CLEAR_VALUE)', '[0, 0, 0, 0]');
74 shouldBe('context.getParameter(context.COLOR_WRITEMASK)', '[true, true, true , true]');
75 shouldBe('context.getParameter(context.CULL_FACE)', 'false');
76 shouldBe('context.getParameter(context.CULL_FACE_MODE)', 'context.BACK');
77 shouldBe('context.getParameter(context.CURRENT_PROGRAM)', 'null');
78 shouldBe('context.getParameter(context.DEPTH_CLEAR_VALUE)', '1');
79 shouldBe('context.getParameter(context.DEPTH_FUNC)', 'context.LESS');
80 shouldBe('context.getParameter(context.DEPTH_RANGE)', '[0, 1]');
81 shouldBe('context.getParameter(context.DEPTH_TEST)', 'false');
82 shouldBe('context.getParameter(context.DEPTH_WRITEMASK)', 'true');
83 shouldBe('context.getParameter(context.DITHER)', 'true');
84 shouldBe('context.getParameter(context.ELEMENT_ARRAY_BUFFER_BINDING)', 'null ');
85 shouldBe('context.getParameter(context.FRONT_FACE)', 'context.CCW');
86 shouldBe('context.getParameter(context.GENERATE_MIPMAP_HINT)', 'context.DONT _CARE');
87 shouldBe('context.getParameter(context.LINE_WIDTH)', '1');
88 shouldBe('context.getParameter(context.POLYGON_OFFSET_FACTOR)', '0');
89 shouldBe('context.getParameter(context.POLYGON_OFFSET_FILL)', 'false');
90 shouldBe('context.getParameter(context.POLYGON_OFFSET_UNITS)', '0');
91 shouldBe('context.getParameter(context.RENDERBUFFER_BINDING)', 'null');
92 shouldBe('context.getParameter(context.SAMPLE_COVERAGE_INVERT)', 'false');
93 shouldBe('context.getParameter(context.SAMPLE_COVERAGE_VALUE)', '1');
94 shouldBe('context.getParameter(context.SCISSOR_BOX)[0]', '0');
95 shouldBe('context.getParameter(context.SCISSOR_BOX)[1]', '0');
96 shouldBe('context.getParameter(context.SCISSOR_TEST)', 'false');
97 shouldBe('context.getParameter(context.STENCIL_BACK_FAIL)', 'context.KEEP');
98 shouldBe('context.getParameter(context.STENCIL_BACK_FUNC)', 'context.ALWAYS' );
99 shouldBe('context.getParameter(context.STENCIL_BACK_PASS_DEPTH_FAIL)', 'cont ext.KEEP');
100 shouldBe('context.getParameter(context.STENCIL_BACK_PASS_DEPTH_PASS)', 'cont ext.KEEP');
101 shouldBe('context.getParameter(context.STENCIL_BACK_REF)', '0');
102
103 shouldBe('context.getParameter(context.STENCIL_BACK_VALUE_MASK)', '0xFFFFFFF F');
104 shouldBe('context.getParameter(context.STENCIL_BACK_WRITEMASK)', '0xFFFFFFFF ');
105
106 // If EXT_packed_depth_stencil is supported, STENCIL_BITS > 0; otherwise, ST ENCIL_BITS == 0.
107 shouldBe('context.getParameter(context.STENCIL_BITS) >= 0', 'true');
108 shouldBe('context.getParameter(context.STENCIL_CLEAR_VALUE)', '0');
109 shouldBe('context.getParameter(context.STENCIL_FAIL)', 'context.KEEP');
110 shouldBe('context.getParameter(context.STENCIL_FUNC)', 'context.ALWAYS');
111 shouldBe('context.getParameter(context.STENCIL_PASS_DEPTH_FAIL)', 'context.K EEP');
112 shouldBe('context.getParameter(context.STENCIL_PASS_DEPTH_PASS)', 'context.K EEP');
113 shouldBe('context.getParameter(context.STENCIL_REF)', '0');
114 shouldBe('context.getParameter(context.STENCIL_TEST)', 'false');
115
116 shouldBe('context.getParameter(context.STENCIL_VALUE_MASK)', '0xFFFFFFFF');
117 shouldBe('context.getParameter(context.STENCIL_WRITEMASK)', '0xFFFFFFFF');
118
119 shouldBe('context.getParameter(context.TEXTURE_BINDING_2D)', 'null');
120 shouldBe('context.getParameter(context.TEXTURE_BINDING_CUBE_MAP)', 'null');
121 shouldBe('context.getParameter(context.UNPACK_ALIGNMENT)', '4');
122 shouldBe('context.getParameter(context.UNPACK_FLIP_Y_WEBGL)', 'false');
123 shouldBe('context.getParameter(context.UNPACK_PREMULTIPLY_ALPHA_WEBGL)', 'fa lse');
124 shouldBe('context.getParameter(context.VIEWPORT)', '[0, 0, 2, 2]');
125 shouldBe('context.getParameter(context.NUM_COMPRESSED_TEXTURE_FORMATS)', '0' );
126
127 shouldBeTrue('context.getParameter(context.MAX_COMBINED_TEXTURE_IMAGE_UNITS) >= 8');
128 shouldBeTrue('context.getParameter(context.MAX_CUBE_MAP_TEXTURE_SIZE) >= 16' );
129 shouldBeTrue('context.getParameter(context.MAX_FRAGMENT_UNIFORM_VECTORS) >= 16');
130 shouldBeTrue('context.getParameter(context.MAX_RENDERBUFFER_SIZE) >= 1');
131 shouldBeTrue('context.getParameter(context.MAX_TEXTURE_IMAGE_UNITS) >= 8');
132 shouldBeTrue('context.getParameter(context.MAX_TEXTURE_SIZE) >= 64');
133 shouldBeTrue('context.getParameter(context.MAX_VARYING_VECTORS) >= 8');
134 shouldBeTrue('context.getParameter(context.MAX_VERTEX_ATTRIBS) >= 8');
135 shouldBeTrue('context.getParameter(context.MAX_VERTEX_TEXTURE_IMAGE_UNITS) > = 0');
136 shouldBeTrue('context.getParameter(context.MAX_VERTEX_UNIFORM_VECTORS) >= 12 8');
137 // Note: This requirement should be removed from the spec IMO. Many impeleme ntations
138 // will be based on FBOs and FBOs might have a restriction smaller than the current screen size.
139 // especially if there are multiple screens.
140 shouldBeTrue('context.getParameter(context.MAX_VIEWPORT_DIMS)[0] >= window.s creen.width');
141 shouldBeTrue('context.getParameter(context.MAX_VIEWPORT_DIMS)[1] >= window.s creen.height');
142 }
143
144 debug("");
145 successfullyParsed = true;
146
147 </script>
148 <script src="../resources/js-test-post.js"></script>
149
150 <script>
151 </script>
152
153 </body>
154 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698