OLD | NEW |
| (Empty) |
1 Test for invalid passed parameters | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 Test createShader() | |
7 PASS context.createShader(context.FRAGMENT_SHADER) generated expected GL error:
NO_ERROR. | |
8 PASS context.createShader(context.VERTEX_SHADER) generated expected GL error: NO
_ERROR. | |
9 PASS context.createShader(0) generated expected GL error: INVALID_ENUM. | |
10 PASS context.createShader(context.TRIANGLES) generated expected GL error: INVALI
D_ENUM. | |
11 | |
12 Test clear() | |
13 PASS context.clear(desktopGL['ACCUM_BUFFER_BIT']) generated expected GL error: I
NVALID_VALUE. | |
14 PASS context.clear(desktopGL['ACCUM_BUFFER_BIT'] | context.COLOR_BUFFER_BIT) gen
erated expected GL error: INVALID_VALUE. | |
15 PASS context.clear(desktopGL['ACCUM_BUFFER_BIT'] | context.COLOR_BUFFER_BIT | co
ntext.DEPTH_BUFFER_BIT | context.STENCIL_BUFFER_BIT) generated expected GL error
: INVALID_VALUE. | |
16 PASS context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT | context
.STENCIL_BUFFER_BIT) generated expected GL error: NO_ERROR. | |
17 | |
18 Test bufferData() | |
19 PASS context.bindBuffer(context.ARRAY_BUFFER, buffer) generated expected GL erro
r: NO_ERROR. | |
20 PASS context.bufferData(context.ARRAY_BUFFER, 16, context.STREAM_DRAW) generated
expected GL error: NO_ERROR. | |
21 PASS context.bufferData(context.ARRAY_BUFFER, 16, context.STATIC_DRAW) generated
expected GL error: NO_ERROR. | |
22 PASS context.bufferData(context.ARRAY_BUFFER, 16, context.DYNAMIC_DRAW) generate
d expected GL error: NO_ERROR. | |
23 PASS context.bufferData(context.ARRAY_BUFFER, 16, desktopGL['STREAM_READ']) gene
rated expected GL error: INVALID_ENUM. | |
24 PASS context.bufferData(context.ARRAY_BUFFER, 16, desktopGL['STREAM_COPY']) gene
rated expected GL error: INVALID_ENUM. | |
25 PASS context.bufferData(context.ARRAY_BUFFER, 16, desktopGL['STATIC_READ']) gene
rated expected GL error: INVALID_ENUM. | |
26 PASS context.bufferData(context.ARRAY_BUFFER, 16, desktopGL['STATIC_COPY']) gene
rated expected GL error: INVALID_ENUM. | |
27 PASS context.bufferData(context.ARRAY_BUFFER, 16, desktopGL['DYNAMIC_READ']) gen
erated expected GL error: INVALID_ENUM. | |
28 PASS context.bufferData(context.ARRAY_BUFFER, 16, desktopGL['DYNAMIC_COPY']) gen
erated expected GL error: INVALID_ENUM. | |
29 | |
30 Test {copy}Tex{Sub}Image2D with negative offset/width/height | |
31 PASS context.bindTexture(context.TEXTURE_2D, tex) generated expected GL error: N
O_ERROR. | |
32 PASS context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, -16, -16, 0, contex
t.RGBA, context.UNSIGNED_BYTE, null) generated expected GL error: INVALID_VALUE. | |
33 PASS context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, 16, 16, 0, context.
RGBA, context.UNSIGNED_BYTE, null) generated expected GL error: NO_ERROR. | |
34 PASS context.texSubImage2D(context.TEXTURE_2D, 0, -1, -1, 2, 2, context.RGBA, co
ntext.UNSIGNED_BYTE, pixels) generated expected GL error: INVALID_VALUE. | |
35 PASS context.texSubImage2D(context.TEXTURE_2D, 0, 0, 0, -1, -1, context.RGBA, co
ntext.UNSIGNED_BYTE, pixels) generated expected GL error: INVALID_VALUE. | |
36 PASS context.texSubImage2D(context.TEXTURE_2D, 0, 0, 0, 2, 2, context.RGBA, cont
ext.UNSIGNED_BYTE, pixels) generated expected GL error: NO_ERROR. | |
37 PASS context.copyTexImage2D(context.TEXTURE_2D, 0, context.RGBA, 0, 0, -1, -1, 0
) generated expected GL error: INVALID_VALUE. | |
38 PASS context.copyTexImage2D(context.TEXTURE_2D, 0, context.RGBA, 0, 0, 16, 16, 0
) generated expected GL error: NO_ERROR. | |
39 PASS context.copyTexSubImage2D(context.TEXTURE_2D, 0, -1, -1, 0, 0, 2, 2) genera
ted expected GL error: INVALID_VALUE. | |
40 PASS context.copyTexSubImage2D(context.TEXTURE_2D, 0, 0, 0, 0, 0, -1, -1) genera
ted expected GL error: INVALID_VALUE. | |
41 PASS context.copyTexSubImage2D(context.TEXTURE_2D, 0, 0, 0, 0, 0, 2, 2) generate
d expected GL error: NO_ERROR. | |
42 | |
43 Test renderbufferStorage() with negative width/height | |
44 PASS context.bindRenderbuffer(context.RENDERBUFFER, renderbuffer) generated expe
cted GL error: NO_ERROR. | |
45 PASS context.renderbufferStorage(context.RENDERBUFFER, context.RGBA4, -2, -2) ge
nerated expected GL error: INVALID_VALUE. | |
46 PASS context.renderbufferStorage(context.RENDERBUFFER, context.RGBA4, 16, 16) ge
nerated expected GL error: NO_ERROR. | |
47 | |
48 Test scissor() with negative width/height | |
49 PASS context.scissor(0, 0, -2, -2) generated expected GL error: INVALID_VALUE. | |
50 PASS context.scissor(0, 0, 16, 16) generated expected GL error: NO_ERROR. | |
51 | |
52 Test viewport() with negative width/height | |
53 PASS context.viewport(0, 0, -2, -2) generated expected GL error: INVALID_VALUE. | |
54 PASS context.viewport(0, 0, 16, 16) generated expected GL error: NO_ERROR. | |
55 | |
56 Set up a program to test invalid characters | |
57 PASS context.getError() is context.NO_ERROR | |
58 PASS context.getError() is context.NO_ERROR | |
59 PASS context.getProgramParameter(program, context.LINK_STATUS) is true | |
60 PASS context.getError() is context.NO_ERROR | |
61 PASS context.getError() is context.NO_ERROR | |
62 PASS context.getError() is context.NO_ERROR | |
63 PASS context.getError() is context.NO_ERROR | |
64 | |
65 Test shaderSource() with invalid characters | |
66 PASS context.getError() is context.NO_ERROR | |
67 PASS context.getError() is context.INVALID_VALUE | |
68 PASS context.getError() is context.NO_ERROR | |
69 PASS context.getError() is context.INVALID_VALUE | |
70 PASS context.getError() is context.NO_ERROR | |
71 PASS context.getError() is context.INVALID_VALUE | |
72 PASS context.getError() is context.NO_ERROR | |
73 PASS context.getError() is context.INVALID_VALUE | |
74 PASS context.getError() is context.NO_ERROR | |
75 PASS context.getError() is context.INVALID_VALUE | |
76 PASS context.getError() is context.NO_ERROR | |
77 PASS context.getError() is context.INVALID_VALUE | |
78 | |
79 Test bindAttribLocation() with invalid characters | |
80 PASS context.getError() is context.INVALID_VALUE | |
81 PASS context.getError() is context.INVALID_VALUE | |
82 PASS context.getError() is context.INVALID_VALUE | |
83 PASS context.getError() is context.INVALID_VALUE | |
84 PASS context.getError() is context.INVALID_VALUE | |
85 PASS context.getError() is context.INVALID_VALUE | |
86 | |
87 Test getAttribLocation() with invalid characters | |
88 PASS context.getError() is context.INVALID_VALUE | |
89 PASS context.getError() is context.INVALID_VALUE | |
90 PASS context.getError() is context.INVALID_VALUE | |
91 PASS context.getError() is context.INVALID_VALUE | |
92 PASS context.getError() is context.INVALID_VALUE | |
93 PASS context.getError() is context.INVALID_VALUE | |
94 | |
95 Test getUniformLocation() with invalid characters | |
96 PASS context.getError() is context.INVALID_VALUE | |
97 PASS context.getError() is context.INVALID_VALUE | |
98 PASS context.getError() is context.INVALID_VALUE | |
99 PASS context.getError() is context.INVALID_VALUE | |
100 PASS context.getError() is context.INVALID_VALUE | |
101 PASS context.getError() is context.INVALID_VALUE | |
102 | |
103 PASS successfullyParsed is true | |
104 | |
105 TEST COMPLETE | |
106 | |
OLD | NEW |